yankun1992 / fastbloom

A fast bloom filter implemented by Rust for Python! 10x faster than pybloom!
Apache License 2.0
85 stars 16 forks source link

cross language support (java) #7

Open lcmgh opened 1 year ago

lcmgh commented 1 year ago

Hi!

I'd like to share my bloom filter output to Java services. Are there any Java libs that are compatible with the data structure provided by fastbloom?

Thanks

yankun1992 commented 1 year ago

Hi @lcmgh, if I understand correctly, you want to deserialize the result obtained from the get_bytes method into a Bloom filter implemented in Java. If so, there may not be an implementation that is exactly the same in Java, but I plan to use JNI to provide a Java API soon. By the way, if you are interested, you can participate!

lcmgh commented 1 year ago

Hi @yankun1992 . To be precise, I would like to serve the bytes blob of the bloom filter's result at an endpoint to give other systems the option to run data against the filter locally. Could the artifact of your "Java implementation" then be published on Maven central or will it require additional effort for Java clients to make use of the lib (beside of declaring it as dependency)?

yankun1992 commented 1 year ago

Yes, the plan is to publish to Maven Central :)

yankun1992 commented 1 year ago

Hi @lcmgh, the snapshot package has been publish to https://s01.oss.sonatype.org/content/repositories/snapshots/io/github/yankun1992/ . You can test it!