@InterfaceAudience.Private public class ReversedMobStoreScanner extends StoreScanner
| Modifier and Type | Field and Description |
|---|---|
protected HMobStore |
mobStore |
cacheBlocks, cellsPerHeartbeatCheck, closing, columns, countPerRow, DEFAULT_HBASE_CELLS_SCANNED_PER_HEARTBEAT_CHECK, executor, explicitColumnQuery, HBASE_CELLS_SCANNED_PER_HEARTBEAT_CHECK, heap, isGet, isParallelSeekEnabled, lastTop, lazySeekEnabledGlobally, lock, matcher, maxRowSize, minVersions, now, oldestUnexpiredTS, readPt, scan, store, storeLimit, storeOffset, STORESCANNER_PARALLEL_SEEK_ENABLE, useRowColBloom| Modifier and Type | Method and Description |
|---|---|
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,
KeyValue.KVComparator comparator)
Check whether scan as expected order
|
boolean |
next(List<Cell> outResult,
ScannerContext ctx)
Firstly reads the cells from the HBase.
|
boolean |
reseek(Cell kv)
Reseek the scanner at or after the specified KeyValue.
|
protected void |
resetKVHeap(List<? extends KeyValueScanner> scanners,
KeyValue.KVComparator comparator) |
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
|
checkReseek, close, getEstimatedNumberOfKvsScanned, getNextIndexedKey, getScannersNoCompaction, getSequenceID, next, next, peek, resetScannerStack, selectScannersFrom, updateReadersseekToLastRowdoRealSeek, enforceSeek, isFileScanner, realSeekDone, requestSeek, shouldUseScannerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, enforceSeek, getNextIndexedKey, getSequenceID, isFileScanner, next, peek, realSeekDone, requestSeek, seekToLastRow, shouldUseScannerprotected final HMobStore mobStore
public boolean next(List<Cell> outResult, ScannerContext ctx) throws IOException
next in interface InternalScannernext in class StoreScanneroutResult - return output arrayIOException - eprotected void resetKVHeap(List<? extends KeyValueScanner> scanners, KeyValue.KVComparator comparator) throws IOException
resetKVHeap in class StoreScannerIOExceptionprotected void seekScanners(List<? extends KeyValueScanner> scanners, Cell seekKey, boolean isLazy, boolean isParallelSeek) throws IOException
StoreScannerseekScanners in class StoreScannerisLazy - true if using lazy seekisParallelSeek - true if using parallel seekIOExceptionprotected boolean seekToNextRow(Cell kv) throws IOException
seekToNextRow in class StoreScannerIOExceptionprotected boolean seekAsDirection(Cell kv) throws IOException
seekAsDirection in class StoreScannerIOExceptionprotected void checkScanOrder(Cell prevKV, Cell kv, KeyValue.KVComparator comparator) throws IOException
StoreScannercheckScanOrder in class StoreScannerIOExceptionpublic boolean reseek(Cell kv) throws IOException
KeyValueScannerreseek in interface KeyValueScannerreseek in class StoreScannerkv - seek value (should be non-null)IOExceptionpublic boolean seek(Cell key) throws IOException
KeyValueScannerseek in interface KeyValueScannerseek in class StoreScannerkey - seek valueIOExceptionpublic boolean seekToPreviousRow(Cell key) throws IOException
KeyValueScannerseekToPreviousRow in interface KeyValueScannerseekToPreviousRow in class NonReversedNonLazyKeyValueScannerkey - seek valueIOExceptionpublic boolean backwardSeek(Cell key) throws IOException
KeyValueScannerbackwardSeek in interface KeyValueScannerbackwardSeek in class NonReversedNonLazyKeyValueScannerkey - seek KeyValueIOException