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 n
|
Modifier and Type | Method and Description |
---|---|
int |
compare(Cell left,
Cell right)
Compares two KeyValue nn * @return less than 0 if left is smaller, 0 if equal etc..
|
int |
compare(KeyValueScanner left,
KeyValueScanner right) |
CellComparator |
getComparator()
n
|
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)
public int compare(KeyValueScanner left, KeyValueScanner right)
compare
in interface Comparator<KeyValueScanner>
public int compare(Cell left, Cell right)
public CellComparator getComparator()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.