Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serialization and cross language/platform support #20

Open
patelprateek opened this issue Sep 14, 2022 · 7 comments
Open

serialization and cross language/platform support #20

patelprateek opened this issue Sep 14, 2022 · 7 comments

Comments

@patelprateek
Copy link

Are these filters serializable ?
can we load and serialize filters in a compatible way in different languages and platform ?

jbapple added a commit that referenced this issue Sep 15, 2022
@jbapple
Copy link
Owner

jbapple commented Sep 15, 2022

Just added (de)serialization for block filters. Will soon add for other filters.

@patelprateek
Copy link
Author

great , thanks for the prompt response .
I have use cases where i am creating filters in java and consumed by c++ applications , is there a serialization spec that makes it compatible across different platforms or language ?

@jbapple
Copy link
Owner

jbapple commented Sep 15, 2022

Not yet, but I'll add that.

@jbapple
Copy link
Owner

jbapple commented Sep 17, 2022

@patelprateek How do you plan to pass the filters from Java to C++ - JNI? Disk? MappedByteBuffer? Something else?

@patelprateek
Copy link
Author

@jbapple : initial plan is to pass it through jni for some local computation in native code , but also in future serialized bytes over wire in a protocol buffer message along with some other data to remote server written in c++

@jbapple
Copy link
Owner

jbapple commented Sep 23, 2022

@patelprateek See JavaSerDeTest in block.cpp For example of how to use the new JNI compatible serialization/deserialization to get a filter from Java to C++.

@hskun
Copy link

hskun commented Jun 4, 2023

Hi @jbapple ,
Have any (de)serialization usage or example for reference? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants