@InterfaceAudience.Private public class ReversedKeyValueHeap extends KeyValueHeap
KeyValueScanner.backwardSeek(org.apache.hadoop.hbase.Cell)), and it will jump to the previous row
if it is already at the end of one row when calling next().KeyValueHeap.KVScannerComparatorcomparator, current, heap, scannersForDelayedCloseNO_NEXT_INDEXED_KEY| 构造器和说明 |
|---|
ReversedKeyValueHeap(List<? extends KeyValueScanner> scanners,
CellComparator comparator) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
backwardSeek(Cell seekKey)
Seek the scanner at or before the row of specified Cell, it firstly
tries to seek the scanner at or after the specified Cell, return if
peek KeyValue of scanner has the same row with specified Cell,
otherwise seek the scanner at the first Cell of the row which is the
previous row of specified KeyValue
|
Cell |
next()
Return the next Cell in this scanner, iterating the scanner
|
boolean |
requestSeek(Cell key,
boolean forward,
boolean useBloom)
Similar to
KeyValueScanner.seek(org.apache.hadoop.hbase.Cell) (or KeyValueScanner.reseek(org.apache.hadoop.hbase.Cell) if forward is true) but only
does a seek operation after checking that it is really necessary for the
row/column combination specified by the kv parameter. |
boolean |
reseek(Cell seekKey)
This function is identical to the
KeyValueHeap.seek(Cell) function except
that scanner.seek(seekKey) is changed to scanner.reseek(seekKey). |
boolean |
seek(Cell seekKey)
Seeks all scanners at or below the specified seek key.
|
boolean |
seekToLastRow()
Seek the scanner at the first KeyValue of last row
|
boolean |
seekToPreviousRow(Cell seekKey)
Seek the scanner at the first Cell of the row which is the previous row
of specified key
|
close, getHeap, getNextIndexedKey, next, peek, pollRealKV, shippeddoRealSeek, enforceSeek, getFilePath, isFileScanner, realSeekDone, shouldUseScannerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitenforceSeek, getFilePath, getScannerOrder, isFileScanner, realSeekDone, shouldUseScannernextpublic ReversedKeyValueHeap(List<? extends KeyValueScanner> scanners, CellComparator comparator) throws IOException
scanners - comparator - IOExceptionpublic boolean seek(Cell seekKey) throws IOException
KeyValueHeapAs individual scanners may run past their ends, those scanners are automatically closed and removed from the heap.
This function (and KeyValueHeap.reseek(Cell)) does not do multi-column
Bloom filter and lazy-seek optimizations. To enable those, call
KeyValueHeap.requestSeek(Cell, boolean, boolean).
seek 在接口中 KeyValueScannerseek 在类中 KeyValueHeapseekKey - KeyValue to seek at or afterIOExceptionpublic boolean reseek(Cell seekKey) throws IOException
KeyValueHeapKeyValueHeap.seek(Cell) function except
that scanner.seek(seekKey) is changed to scanner.reseek(seekKey).reseek 在接口中 KeyValueScannerreseek 在类中 KeyValueHeapseekKey - seek value (should be non-null)IOExceptionpublic boolean requestSeek(Cell key, boolean forward, boolean useBloom) throws IOException
KeyValueHeapKeyValueScanner.seek(org.apache.hadoop.hbase.Cell) (or KeyValueScanner.reseek(org.apache.hadoop.hbase.Cell) if forward is true) but only
does a seek operation after checking that it is really necessary for the
row/column combination specified by the kv parameter. This function was
added to avoid unnecessary disk seeks by checking row-column Bloom filters
before a seek on multi-column get/scan queries, and to optimize by looking
up more recent files first.requestSeek 在接口中 KeyValueScannerrequestSeek 在类中 KeyValueHeapforward - do a forward-only "reseek" instead of a random-access seekuseBloom - whether to enable multi-column Bloom filter optimizationIOExceptionpublic boolean seekToPreviousRow(Cell seekKey) throws IOException
KeyValueScannerseekToPreviousRow 在接口中 KeyValueScannerseekToPreviousRow 在类中 NonReversedNonLazyKeyValueScannerseekKey - seek valueIOExceptionpublic boolean backwardSeek(Cell seekKey) throws IOException
KeyValueScannerbackwardSeek 在接口中 KeyValueScannerbackwardSeek 在类中 NonReversedNonLazyKeyValueScannerseekKey - seek KeyValueIOExceptionpublic Cell next() throws IOException
KeyValueScannernext 在接口中 KeyValueScannernext 在类中 KeyValueHeapIOExceptionpublic boolean seekToLastRow()
throws IOException
KeyValueScannerseekToLastRow 在接口中 KeyValueScannerseekToLastRow 在类中 NonReversedNonLazyKeyValueScannerIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.