@@ -2620,9 +2620,8 @@ int compareIgnoringPrefix(int commonPrefix, byte[] left, int loffset, int llengt
26202620 */
26212621 public static class RawBytesComparator extends KVComparator {
26222622 /**
2623- * The HFileV2 file format's trailer contains this class name. We reinterpret this and
2624- * instantiate the appropriate comparator.
2625- * TODO: With V3 consider removing this.
2623+ * The HFileV2 file format's trailer contains this class name. We reinterpret this and
2624+ * instantiate the appropriate comparator. TODO: With V3 consider removing this.
26262625 * @return legacy class name for FileFileTrailer#comparatorClassName
26272626 */
26282627 @ Override
@@ -2635,9 +2634,9 @@ public String getLegacyKeyComparatorName() {
26352634 */
26362635 @ Override
26372636 @ Deprecated
2638- public int compareFlatKey (byte [] left , int loffset , int llength , byte [] right ,
2639- int roffset , int rlength ) {
2640- return Bytes .BYTES_RAWCOMPARATOR .compare (left , loffset , llength , right , roffset , rlength );
2637+ public int compareFlatKey (byte [] left , int loffset , int llength , byte [] right , int roffset ,
2638+ int rlength ) {
2639+ return Bytes .BYTES_RAWCOMPARATOR .compare (left , loffset , llength , right , roffset , rlength );
26412640 }
26422641
26432642 @ Override
@@ -2649,34 +2648,33 @@ public int compare(Cell left, Cell right) {
26492648 @ VisibleForTesting
26502649 public int compareOnlyKeyPortion (Cell left , Cell right ) {
26512650 int c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getRowArray (), left .getRowOffset (),
2652- left .getRowLength (), right .getRowArray (), right .getRowOffset (), right .getRowLength ());
2651+ left .getRowLength (), right .getRowArray (), right .getRowOffset (), right .getRowLength ());
26532652 if (c != 0 ) {
26542653 return c ;
26552654 }
26562655 c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getFamilyArray (), left .getFamilyOffset (),
2657- left .getFamilyLength (), right .getFamilyArray (), right .getFamilyOffset (),
2658- right .getFamilyLength ());
2656+ left .getFamilyLength (), right .getFamilyArray (), right .getFamilyOffset (),
2657+ right .getFamilyLength ());
26592658 if (c != 0 ) {
26602659 return c ;
26612660 }
26622661 c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getQualifierArray (), left .getQualifierOffset (),
2663- left .getQualifierLength (), right .getQualifierArray (), right .getQualifierOffset (),
2664- right .getQualifierLength ());
2662+ left .getQualifierLength (), right .getQualifierArray (), right .getQualifierOffset (),
2663+ right .getQualifierLength ());
26652664 if (c != 0 ) {
26662665 return c ;
26672666 }
26682667 c = compareTimestamps (left .getTimestamp (), right .getTimestamp ());
26692668 if (c != 0 ) {
26702669 return c ;
26712670 }
2672- return (0xff & left .getTypeByte ()) - (0xff & right .getTypeByte ());
2671+ return (0xff & right .getTypeByte ()) - (0xff & left .getTypeByte ());
26732672 }
26742673
26752674 @ Override
26762675 public byte [] calcIndexKey (byte [] lastKeyOfPreviousBlock , byte [] firstKeyInBlock ) {
26772676 return firstKeyInBlock ;
26782677 }
2679-
26802678 }
26812679
26822680 /**
0 commit comments