Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Docs Required, Release Notes Required
Description
For now. Tuple implementations don't override hashcode/equals methods.
This makes them non-comparable with each other and limits Tuple usage in Set/Map collections.
But we already use Tuple in that way (see KVBinaryView API).
Let's
- Make all key columns mandatory, otherwise it is impossible to match missed key columns and columns with a default value.
- Specify requirements to hashcode in method javadoc. Hashcode must be independent of columns order (uses XOR operation).
- Make external equals/hashcode implementation as a static method of some util class to reuse it in all Tuple out implementations.
Attachments
Issue Links
- links to