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

Eliminate long to Long auto boxing in LongComparator

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.0
    • 1.4.0, 0.98.23, 2.0.0
    • Filters
    • None
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment