protected static class KeyValueHeap.KVScannerComparator extends Object implements Comparator<KeyValueScanner>
Modifier and Type | Field and Description |
---|---|
protected CellComparator |
kvComparator |
Constructor and Description |
---|
KVScannerComparator(CellComparator kvComparator)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Cell left,
Cell right)
Compares two KeyValue
|
int |
compare(KeyValueScanner left,
KeyValueScanner right) |
CellComparator |
getComparator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected CellComparator kvComparator
public KVScannerComparator(CellComparator kvComparator)
kvComparator
- public int compare(KeyValueScanner left, KeyValueScanner right)
compare
in interface Comparator<KeyValueScanner>
public int compare(Cell left, Cell right)
left
- right
- public CellComparator getComparator()
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.