Class ReversedMobStoreScanner
java.lang.Object
org.apache.hadoop.hbase.regionserver.NonLazyKeyValueScanner
org.apache.hadoop.hbase.regionserver.NonReversedNonLazyKeyValueScanner
org.apache.hadoop.hbase.regionserver.StoreScanner
org.apache.hadoop.hbase.regionserver.ReversedStoreScanner
org.apache.hadoop.hbase.regionserver.ReversedMobStoreScanner
- All Implemented Interfaces:
Closeable,AutoCloseable,ChangedReadersObserver,InternalScanner,KeyValueScanner,Shipper
ReversedMobStoreScanner extends from ReversedStoreScanner, and is used to support reversed
scanning in both the memstore and the MOB store.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate static final org.slf4j.Loggerprivate final HMobStoreprivate booleanprivate booleanFields inherited from class org.apache.hadoop.hbase.regionserver.StoreScanner
currentScanners, DEFAULT_HBASE_CELLS_SCANNED_PER_HEARTBEAT_CHECK, HBASE_CELLS_SCANNED_PER_HEARTBEAT_CHECK, heap, LAZY_SEEK_ENABLED_BY_DEFAULT, memstoreOnlyReads, mixedReads, readPt, store, STORESCANNER_PARALLEL_SEEK_ENABLE, STORESCANNER_PREAD_MAX_BYTESFields inherited from interface org.apache.hadoop.hbase.regionserver.KeyValueScanner
NO_NEXT_INDEXED_KEY -
Constructor Summary
ConstructorsConstructorDescriptionReversedMobStoreScanner(HStore store, ScanInfo scanInfo, Scan scan, NavigableSet<byte[]> columns, long readPt) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the KeyValue scanner.private voidbooleannext(List<? super ExtendedCell> outResult, ScannerContext ctx) Firstly reads the cells from the HBase.voidshipped()Called after a batch of rows scanned and set to be returned to client.Methods inherited from class org.apache.hadoop.hbase.regionserver.ReversedStoreScanner
backwardSeek, checkScanOrder, newKVHeap, reseek, seek, seekAsDirection, seekScanners, seekToNextRow, seekToPreviousRowMethods inherited from class org.apache.hadoop.hbase.regionserver.StoreScanner
checkFlushed, enableLazySeekGlobally, getAllScannersForTesting, getEstimatedNumberOfKvsScanned, getNextIndexedKey, getReadPoint, hasSwitchedToStreamRead, hasUpdatedReaders, instrument, isScanUsePread, next, peek, reopenAfterFlush, resetHasSwitchedToStreamRead, resetHasUpdatedReaders, resetKVHeap, selectScannersFrom, trySkipToNextColumn, trySkipToNextRow, trySwitchToStreamRead, updateReadersMethods inherited from class org.apache.hadoop.hbase.regionserver.NonReversedNonLazyKeyValueScanner
seekToLastRowMethods inherited from class org.apache.hadoop.hbase.regionserver.NonLazyKeyValueScanner
doRealSeek, enforceSeek, getFilePath, isFileScanner, realSeekDone, recordBlockSize, requestSeek, shouldUseScannerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.hbase.regionserver.InternalScanner
nextMethods inherited from interface org.apache.hadoop.hbase.regionserver.KeyValueScanner
enforceSeek, getFilePath, getNextIndexedKey, getScannerOrder, isFileScanner, next, peek, realSeekDone, recordBlockSize, requestSeek, seekToLastRow, shouldUseScanner
-
Field Details
-
LOG
-
cacheMobBlocks
-
rawMobScan
-
readEmptyValueOnMobCellMiss
-
mobStore
-
referencedMobCells
-
-
Constructor Details
-
Method Details
-
next
Firstly reads the cells from the HBase. If the cell is a reference cell (which has the reference tag), the scanner need seek this cell from the mob file, and use the cell found from the mob file as the result.- Specified by:
nextin interfaceInternalScanner- Overrides:
nextin classStoreScanner- Parameters:
outResult- return output array. We will only add ExtendedCell to this list, but for CP users, you'd better just useRawCellasExtendedCellis IA.Private.- Returns:
- true if there are more rows, false if scanner is done
- Throws:
IOException
-
freeAllReferencedMobCells
- Throws:
IOException
-
shipped
Description copied from interface:ShipperCalled after a batch of rows scanned and set to be returned to client. Any in between cleanup can be done here.- Specified by:
shippedin interfaceShipper- Overrides:
shippedin classStoreScanner- Throws:
IOException
-
close
Description copied from interface:KeyValueScannerClose the KeyValue scanner.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceInternalScanner- Specified by:
closein interfaceKeyValueScanner- Overrides:
closein classStoreScanner
-