@@ -2614,9 +2614,8 @@ int compareIgnoringPrefix(int commonPrefix, byte[] left, int loffset, int llengt
26142614 */
26152615 public static class RawBytesComparator extends KVComparator {
26162616 /**
2617- * The HFileV2 file format's trailer contains this class name. We reinterpret this and
2618- * instantiate the appropriate comparator.
2619- * TODO: With V3 consider removing this.
2617+ * The HFileV2 file format's trailer contains this class name. We reinterpret this and
2618+ * instantiate the appropriate comparator. TODO: With V3 consider removing this.
26202619 * @return legacy class name for FileFileTrailer#comparatorClassName
26212620 */
26222621 @ Override
@@ -2629,9 +2628,9 @@ public String getLegacyKeyComparatorName() {
26292628 */
26302629 @ Override
26312630 @ Deprecated
2632- public int compareFlatKey (byte [] left , int loffset , int llength , byte [] right ,
2633- int roffset , int rlength ) {
2634- return Bytes .BYTES_RAWCOMPARATOR .compare (left , loffset , llength , right , roffset , rlength );
2631+ public int compareFlatKey (byte [] left , int loffset , int llength , byte [] right , int roffset ,
2632+ int rlength ) {
2633+ return Bytes .BYTES_RAWCOMPARATOR .compare (left , loffset , llength , right , roffset , rlength );
26352634 }
26362635
26372636 @ Override
@@ -2643,34 +2642,33 @@ public int compare(Cell left, Cell right) {
26432642 @ VisibleForTesting
26442643 public int compareOnlyKeyPortion (Cell left , Cell right ) {
26452644 int c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getRowArray (), left .getRowOffset (),
2646- left .getRowLength (), right .getRowArray (), right .getRowOffset (), right .getRowLength ());
2645+ left .getRowLength (), right .getRowArray (), right .getRowOffset (), right .getRowLength ());
26472646 if (c != 0 ) {
26482647 return c ;
26492648 }
26502649 c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getFamilyArray (), left .getFamilyOffset (),
2651- left .getFamilyLength (), right .getFamilyArray (), right .getFamilyOffset (),
2652- right .getFamilyLength ());
2650+ left .getFamilyLength (), right .getFamilyArray (), right .getFamilyOffset (),
2651+ right .getFamilyLength ());
26532652 if (c != 0 ) {
26542653 return c ;
26552654 }
26562655 c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getQualifierArray (), left .getQualifierOffset (),
2657- left .getQualifierLength (), right .getQualifierArray (), right .getQualifierOffset (),
2658- right .getQualifierLength ());
2656+ left .getQualifierLength (), right .getQualifierArray (), right .getQualifierOffset (),
2657+ right .getQualifierLength ());
26592658 if (c != 0 ) {
26602659 return c ;
26612660 }
26622661 c = compareTimestamps (left .getTimestamp (), right .getTimestamp ());
26632662 if (c != 0 ) {
26642663 return c ;
26652664 }
2666- return (0xff & left .getTypeByte ()) - (0xff & right .getTypeByte ());
2665+ return (0xff & right .getTypeByte ()) - (0xff & left .getTypeByte ());
26672666 }
26682667
26692668 @ Override
26702669 public byte [] calcIndexKey (byte [] lastKeyOfPreviousBlock , byte [] firstKeyInBlock ) {
26712670 return firstKeyInBlock ;
26722671 }
2673-
26742672 }
26752673
26762674 /**
0 commit comments