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

[Java] Type annotation hints for serialization #1956

Open
chaokunyang opened this issue Nov 23, 2024 · 0 comments
Open

[Java] Type annotation hints for serialization #1956

chaokunyang opened this issue Nov 23, 2024 · 0 comments

Comments

@chaokunyang
Copy link
Collaborator

Feature Request

We could provide some extra type information to mmake fury serialization faster.

The annotation can be like following:

@TypeInfo(fieldsNullable = false, trackingRef = false, polymorphic = false)
class Foo {
  @FieldInfo(trackingRef = false)
  int[] intArray;
  @FieldInfo(polymorphic = true)
  Object object;
  @FieldInfo(tagId = 1, nullable = true)
  List<Object> objectList;
}

Or

@Type(fieldsNullable = false, trackingRef = false, polymorphic = false)
class Foo {
  @Field(trackingRef = false)
  int[] intArray;
  @Field(polymorphic = true)
  Object object;
  @Field(tagId = 1, nullable = true)
  List<Object> objectList;
}

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

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

1 participant