Class KeyValueHeap.KVScannerComparator
java.lang.Object
org.apache.hadoop.hbase.regionserver.KeyValueHeap.KVScannerComparator
- All Implemented Interfaces:
Comparator<KeyValueScanner>
- Direct Known Subclasses:
ReversedKeyValueHeap.ReversedKVScannerComparator
- Enclosing class:
- KeyValueHeap
protected static class KeyValueHeap.KVScannerComparator
extends Object
implements Comparator<KeyValueScanner>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Compares two KeyValueint
compare
(KeyValueScanner left, KeyValueScanner right) 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
-
Field Details
-
kvComparator
-
-
Constructor Details
-
KVScannerComparator
Constructor
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<KeyValueScanner>
-
compare
Compares two KeyValue- Returns:
- less than 0 if left is smaller, 0 if equal etc..
-
getComparator
-