Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-15532

Tuple equality comparison.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha3
    • 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

          Activity

            People

              amashenkov Andrey Mashenkov
              amashenkov Andrey Mashenkov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m