-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Fix ContentTypeId conflict #3967
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -875,4 +875,18 @@ public class Constants { | |
| public static final String METRICS_PROTOCOL = "metrics.protocol"; | ||
|
|
||
|
|
||
| /** | ||
| * Serizlization ContentTypeId | ||
| */ | ||
| public static final byte AVRO_SERIALIZATION_ID = 1; | ||
| public static final byte HESSIAN2_SERIALIZATION_ID = 2; | ||
| public static final byte JAVA_SERIALIZATION_ID = 3; | ||
| public static final byte COMPACTED_JAVA_SERIALIZATION_ID = 4; | ||
| public static final byte FASTJSON_SERIALIZATION_ID = 6; | ||
| public static final byte NATIVE_JAVA_SERIALIZATION_ID = 7; | ||
| public static final byte KRYO_SERIALIZATION_ID = 8; | ||
| public static final byte FST_SERIALIZATION_ID = 9; | ||
| public static final byte PROTOSTUFF_SERIALIZATION_ID = 10; | ||
| public static final byte GSON_SERIALIZATION_ID = 16; | ||
|
|
||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe you can define a sub-constant class. What do you think?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. +1 for a specific constants class
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this suggestion is good, I will modify it later. |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is wrong, avro is 10...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public static final byte AVRO_SERIALIZATION_ID = 11 should be better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the uses of 1 and 5 here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's simply leave it as is. I believe the original intention is: 1, 2, 4, 8, 16...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have modified it.