Can fury support serializing enumerations by enumeration name?
lionel-xie opened this issue · comments
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?
Describe the solution you'd like
Additional context
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
OK, I can try it.