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

Can fury support serializing enumerations by enumeration name? #1786

Open
lionel-xie opened this issue Aug 2, 2024 · 2 comments
Open

Can fury support serializing enumerations by enumeration name? #1786

lionel-xie opened this issue Aug 2, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@lionel-xie
Copy link

Is your feature request related to a problem? Please describe.

Can fury support serializing enumerations by enumeration name? Serializing enumeration names like a string serializer. Serializing existing enumerations through ordinal will cause errors if the order is destroyed when adding new enumerations. Maybe can directly reuse the write and read methods in the stringSerializer?
image

Describe the solution you'd like

Additional context

@lionel-xie lionel-xie added the enhancement New feature or request label Aug 2, 2024
@chaokunyang
Copy link
Collaborator

Yes, this make sense, would you like to contribute to it? The implementation is not complex. But we'd like to keep serializing by ordinal as default. And encode enum string by Fury MetaString algorithm using org.apache.fury.resolver.ClassResolver#getMetaStringResolver

@lionel-xie
Copy link
Author

OK, I can try it.

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

No branches or pull requests

2 participants