Hey Tushar, There is not, to my knowledge, any feature that lets you control the hashing of an avro record type. There's certainly nothing in the Java code generation that's intended for that purpose.
I can think of some reasonable solutions, but they depend on your use case: - Use a data structure that has an independent hash key (e.g. a HashMap instead of a HashSet) - Write a wrapper for the record class only to define custom hashCode and equals (with or without inheritance) - Map from your avro type to an internal type (in many cases, applications don't want their internal format to be the wire format) - Bridger Howell -- The information contained in this email message is PRIVATE and intended only for the personal and confidential use of the recipient named above. If the reader of this message is not the intended recipient or an agent responsible for delivering it to the intended recipient, you are hereby notified that you have received this message in error and that any review, dissemination, distribution or copying of this message is strictly prohibited. If you have received this communication in error, please notify us immediately by email, and delete the original message.
