Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-16705

Eliminate long to Long auto boxing in LongComparator

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 1.4.0, 0.98.23, 2.0.0
    • Component/s: Filters
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      LongComparator
      @Override
      public int compareTo(byte[] value, int offset, int length)

      { Long that = Bytes.toLong(value, offset, length); return this.longValue.compareTo(that); }

      Every time need to convert long to Long, this is not necessary.

        Attachments

        1. HBASE-16705-master.patch
          2 kB
          Lijin Bin

          Activity

            People

            • Assignee:
              binlijin Lijin Bin
              Reporter:
              binlijin Lijin Bin
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: