Class Bytes.RowEndKeyComparator
java.lang.Object
com.mapr.org.apache.hadoop.hbase.util.Bytes.ByteArrayComparator
com.mapr.org.apache.hadoop.hbase.util.Bytes.RowEndKeyComparator
- All Implemented Interfaces:
Comparator<byte[]>
- Enclosing class:
- Bytes
A
Bytes.ByteArrayComparator that treats the empty array as the largest value.
This is useful for comparing row end keys for regions.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
RowEndKeyComparator
public RowEndKeyComparator()
-
-
Method Details
-
compare
public int compare(byte[] left, byte[] right) - Specified by:
comparein interfaceComparator<byte[]>- Overrides:
comparein classBytes.ByteArrayComparator
-
compare
public int compare(byte[] b1, int s1, int l1, byte[] b2, int s2, int l2) - Overrides:
comparein classBytes.ByteArrayComparator
-