@@ -2630,9 +2630,8 @@ int compareIgnoringPrefix(int commonPrefix, byte[] left, int loffset, int llengt
26302630 */
26312631 public static class RawBytesComparator extends KVComparator {
26322632 /**
2633- * The HFileV2 file format's trailer contains this class name. We reinterpret this and
2634- * instantiate the appropriate comparator.
2635- * TODO: With V3 consider removing this.
2633+ * The HFileV2 file format's trailer contains this class name. We reinterpret this and
2634+ * instantiate the appropriate comparator. TODO: With V3 consider removing this.
26362635 * @return legacy class name for FileFileTrailer#comparatorClassName
26372636 */
26382637 @ Override
@@ -2645,9 +2644,9 @@ public String getLegacyKeyComparatorName() {
26452644 */
26462645 @ Override
26472646 @ Deprecated
2648- public int compareFlatKey (byte [] left , int loffset , int llength , byte [] right ,
2649- int roffset , int rlength ) {
2650- return Bytes .BYTES_RAWCOMPARATOR .compare (left , loffset , llength , right , roffset , rlength );
2647+ public int compareFlatKey (byte [] left , int loffset , int llength , byte [] right , int roffset ,
2648+ int rlength ) {
2649+ return Bytes .BYTES_RAWCOMPARATOR .compare (left , loffset , llength , right , roffset , rlength );
26512650 }
26522651
26532652 @ Override
@@ -2659,34 +2658,33 @@ public int compare(Cell left, Cell right) {
26592658 @ VisibleForTesting
26602659 public int compareOnlyKeyPortion (Cell left , Cell right ) {
26612660 int c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getRowArray (), left .getRowOffset (),
2662- left .getRowLength (), right .getRowArray (), right .getRowOffset (), right .getRowLength ());
2661+ left .getRowLength (), right .getRowArray (), right .getRowOffset (), right .getRowLength ());
26632662 if (c != 0 ) {
26642663 return c ;
26652664 }
26662665 c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getFamilyArray (), left .getFamilyOffset (),
2667- left .getFamilyLength (), right .getFamilyArray (), right .getFamilyOffset (),
2668- right .getFamilyLength ());
2666+ left .getFamilyLength (), right .getFamilyArray (), right .getFamilyOffset (),
2667+ right .getFamilyLength ());
26692668 if (c != 0 ) {
26702669 return c ;
26712670 }
26722671 c = Bytes .BYTES_RAWCOMPARATOR .compare (left .getQualifierArray (), left .getQualifierOffset (),
2673- left .getQualifierLength (), right .getQualifierArray (), right .getQualifierOffset (),
2674- right .getQualifierLength ());
2672+ left .getQualifierLength (), right .getQualifierArray (), right .getQualifierOffset (),
2673+ right .getQualifierLength ());
26752674 if (c != 0 ) {
26762675 return c ;
26772676 }
26782677 c = compareTimestamps (left .getTimestamp (), right .getTimestamp ());
26792678 if (c != 0 ) {
26802679 return c ;
26812680 }
2682- return (0xff & left .getTypeByte ()) - (0xff & right .getTypeByte ());
2681+ return (0xff & right .getTypeByte ()) - (0xff & left .getTypeByte ());
26832682 }
26842683
26852684 @ Override
26862685 public byte [] calcIndexKey (byte [] lastKeyOfPreviousBlock , byte [] firstKeyInBlock ) {
26872686 return firstKeyInBlock ;
26882687 }
2689-
26902688 }
26912689
26922690 /**
0 commit comments