Class Bytes.RowEndKeyComparator

  • All Implemented Interfaces:
    java.util.Comparator<byte[]>
    Enclosing class:
    Bytes

    public static class Bytes.RowEndKeyComparator
    extends Bytes.ByteArrayComparator
    A Bytes.ByteArrayComparator that treats the empty array as the largest value. This is useful for comparing row end keys for regions.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(byte[] left, byte[] right)  
      int compare​(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • RowEndKeyComparator

        public RowEndKeyComparator()
    • Method Detail

      • compare

        public int compare​(byte[] left,
                           byte[] right)
        Specified by:
        compare in interface java.util.Comparator<byte[]>
        Overrides:
        compare in class Bytes.ByteArrayComparator