Package org.apache.hadoop.hbase.util
Class Bytes.RowEndKeyComparator
java.lang.Object
org.apache.hadoop.hbase.util.Bytes.ByteArrayComparator
org.apache.hadoop.hbase.util.Bytes.RowEndKeyComparator
- All Implemented Interfaces:
Comparator<byte[]>
,org.apache.hadoop.io.RawComparator<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
-
Method Summary
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 Details
-
RowEndKeyComparator
public RowEndKeyComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<byte[]>
- Overrides:
compare
in classBytes.ByteArrayComparator
-
compare
- Specified by:
compare
in interfaceorg.apache.hadoop.io.RawComparator<byte[]>
- Overrides:
compare
in classBytes.ByteArrayComparator
-