Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-723

Thrift buffers with set and map types in Java should implement Comparable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.3
    • None
    • Patch Available

    Description

      Currently, Thrift objects in Java don't implement Comparable if any field is a set or a map.
      The patch attached implements Comparable for those cases. If we can compare a List, we should be able to compare a Set just as easily. This implementation compares two thrift objects by comparing the sorted entries of each set or map.

      Attachments

        1. thrift-compare-to.patch
          56 kB
          Dmitry Chechik
        2. thrift-723-v2.patch
          16 kB
          Bryan Duxbury

        Activity

          People

            bryanduxbury Bryan Duxbury
            dmitrychechik Dmitry Chechik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: