apache / fury

A blazingly fast multi-language serialization framework powered by JIT and zero-copy.
https://fury.apache.org/
Apache License 2.0
3.11k stars 248 forks source link

feat(java): add deserial object with feature deserializeNonexistentClassNotWriteFullClassInfo feature #1932

Open shuyufang opened 2 weeks ago

shuyufang commented 2 weeks ago

…ullClassInfo

What does this PR do?

we has some scene , after the class with the upstream system serialized, the downstream system can not deserialize without the class object, but current .withDeserializeNonexistentClass write the full class info. we want fury support deserialize object when none local class can deserializeNonexistentClassNotWriteFullClassInfo feature

Related issues

Does this PR introduce any user-facing change?

Benchmark

chaokunyang commented 1 week ago

@shuyufang Seems we can refactor ClassDef#FieldInfo#qualifiedFieldName into fieldName, and only add classname when parent class has duplicate field with subclass. In this way, we can skip add a new option. Would you like to refactor along this way?