@InterfaceAudience.Private public class ReversedStoreScanner extends StoreScanner implements KeyValueScanner
DEFAULT_HBASE_CELLS_SCANNED_PER_HEARTBEAT_CHECK, HBASE_CELLS_SCANNED_PER_HEARTBEAT_CHECK, heap, readPt, store, STORESCANNER_PARALLEL_SEEK_ENABLE, STORESCANNER_PREAD_MAX_BYTESNO_NEXT_INDEXED_KEY| 构造器和说明 |
|---|
ReversedStoreScanner(HStore store,
ScanInfo scanInfo,
Scan scan,
NavigableSet<byte[]> columns,
long readPt)
Opens a scanner across memstore, snapshot, and all StoreFiles.
|
ReversedStoreScanner(Scan scan,
ScanInfo scanInfo,
NavigableSet<byte[]> columns,
List<? extends KeyValueScanner> scanners)
Constructor for testing.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
backwardSeek(Cell key)
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
|
protected void |
checkScanOrder(Cell prevKV,
Cell kv,
CellComparator comparator)
Check whether scan as expected order
|
protected KeyValueHeap |
newKVHeap(List<? extends KeyValueScanner> scanners,
CellComparator comparator) |
boolean |
reseek(Cell kv)
Reseek the scanner at or after the specified KeyValue.
|
boolean |
seek(Cell key)
Seek the scanner at or after the specified KeyValue.
|
protected boolean |
seekAsDirection(Cell kv)
Do a backwardSeek in a reversed StoreScanner(scan backward)
|
protected void |
seekScanners(List<? extends KeyValueScanner> scanners,
Cell seekKey,
boolean isLazy,
boolean isParallelSeek)
Seek the specified scanners with the given key
|
protected boolean |
seekToNextRow(Cell kv) |
boolean |
seekToPreviousRow(Cell key)
Seek the scanner at the first Cell of the row which is the previous row
of specified key
|
checkFlushed, close, getEstimatedNumberOfKvsScanned, getNextIndexedKey, getReadPoint, next, next, peek, reopenAfterFlush, resetKVHeap, selectScannersFrom, shipped, trySkipToNextColumn, trySkipToNextRow, updateReadersseekToLastRowdoRealSeek, enforceSeek, getFilePath, isFileScanner, realSeekDone, requestSeek, shouldUseScannerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, enforceSeek, getFilePath, getNextIndexedKey, getScannerOrder, isFileScanner, next, peek, realSeekDone, requestSeek, seekToLastRow, shouldUseScannernextpublic ReversedStoreScanner(HStore store, ScanInfo scanInfo, Scan scan, NavigableSet<byte[]> columns, long readPt) throws IOException
store - who we scanscanInfo - scan - the speccolumns - which columns we are scanningIOExceptionpublic ReversedStoreScanner(Scan scan, ScanInfo scanInfo, NavigableSet<byte[]> columns, List<? extends KeyValueScanner> scanners) throws IOException
IOExceptionprotected KeyValueHeap newKVHeap(List<? extends KeyValueScanner> scanners, CellComparator comparator) throws IOException
newKVHeap 在类中 StoreScannerIOExceptionprotected void seekScanners(List<? extends KeyValueScanner> scanners, Cell seekKey, boolean isLazy, boolean isParallelSeek) throws IOException
StoreScannerseekScanners 在类中 StoreScannerisLazy - true if using lazy seekisParallelSeek - true if using parallel seekIOExceptionprotected boolean seekToNextRow(Cell kv) throws IOException
seekToNextRow 在类中 StoreScannerIOExceptionprotected boolean seekAsDirection(Cell kv) throws IOException
seekAsDirection 在类中 StoreScannerIOExceptionprotected void checkScanOrder(Cell prevKV, Cell kv, CellComparator comparator) throws IOException
StoreScannercheckScanOrder 在类中 StoreScannerIOExceptionpublic boolean reseek(Cell kv) throws IOException
KeyValueScannerreseek 在接口中 KeyValueScannerreseek 在类中 StoreScannerkv - seek value (should be non-null)IOExceptionpublic boolean seek(Cell key) throws IOException
KeyValueScannerseek 在接口中 KeyValueScannerseek 在类中 StoreScannerkey - seek valueIOExceptionpublic boolean seekToPreviousRow(Cell key) throws IOException
KeyValueScannerseekToPreviousRow 在接口中 KeyValueScannerseekToPreviousRow 在类中 NonReversedNonLazyKeyValueScannerkey - seek valueIOExceptionpublic boolean backwardSeek(Cell key) throws IOException
KeyValueScannerbackwardSeek 在接口中 KeyValueScannerbackwardSeek 在类中 NonReversedNonLazyKeyValueScannerkey - seek KeyValueIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.