Class CompactionScanQueryMatcher
java.lang.Object
org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher
org.apache.hadoop.hbase.regionserver.querymatcher.CompactionScanQueryMatcher
- All Implemented Interfaces:
ShipperListener
- Direct Known Subclasses:
DropDeletesCompactionScanQueryMatcher,MinorCompactionScanQueryMatcher
Query matcher for compaction.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher
ScanQueryMatcher.MatchCode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final DeleteTrackerKeeps track of deletesprotected final KeepDeletedCellswhether to return deleted rowsprotected final longreadPoint over which the KVs are unconditionally includedFields inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher
columns, currentRow, now, oldestUnexpiredTS, rowComparator, startKey -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCompactionScanQueryMatcher(ScanInfo scanInfo, DeleteTracker deletes, ColumnTracker columnTracker, long readPointToUse, long oldestUnexpiredTS, long now) -
Method Summary
Modifier and TypeMethodDescriptionvoidThe action that needs to be performed beforeShipper.shipped()is performedstatic CompactionScanQueryMatchercreate(ScanInfo scanInfo, ScanType scanType, long readPointToUse, long earliestPutTs, long oldestUnexpiredTS, long now, byte[] dropDeletesFromRow, byte[] dropDeletesToRow, RegionCoprocessorHost regionCoprocessorHost) Returns the FiltergetNextKeyHint(ExtendedCell cell) Delegate toFilter.getNextCellHint(Cell).booleanReturns whether there is an null column in the querybooleanbooleanprotected voidreset()protected final voidtrackDelete(ExtendedCell cell) Methods inherited from class org.apache.hadoop.hbase.regionserver.querymatcher.ScanQueryMatcher
checkColumn, checkDeleted, clearCurrentRow, compareKeyForNextColumn, compareKeyForNextRow, createStartKeyFromRow, currentRow, getKeyForNextColumn, getStartKey, getTrackers, match, preCheck, setToNewRow
-
Field Details
-
maxReadPointToTrackVersions
readPoint over which the KVs are unconditionally included -
deletes
Keeps track of deletes -
keepDeletedCells
whether to return deleted rows
-
-
Constructor Details
-
CompactionScanQueryMatcher
protected CompactionScanQueryMatcher(ScanInfo scanInfo, DeleteTracker deletes, ColumnTracker columnTracker, long readPointToUse, long oldestUnexpiredTS, long now)
-
-
Method Details
-
beforeShipped
Description copied from interface:ShipperListenerThe action that needs to be performed beforeShipper.shipped()is performed- Specified by:
beforeShippedin interfaceShipperListener- Overrides:
beforeShippedin classScanQueryMatcher- Throws:
IOException
-
hasNullColumnInQuery
Description copied from class:ScanQueryMatcherReturns whether there is an null column in the query- Specified by:
hasNullColumnInQueryin classScanQueryMatcher
-
isUserScan
- Specified by:
isUserScanin classScanQueryMatcher
-
moreRowsMayExistAfter
- Specified by:
moreRowsMayExistAfterin classScanQueryMatcher- Returns:
- Returns false if we know there are no more rows to be scanned (We've reached the
stopRowor we are scanning on row only because this Scan is for a Get, etc.
-
getFilter
Description copied from class:ScanQueryMatcherReturns the Filter- Specified by:
getFilterin classScanQueryMatcher
-
getNextKeyHint
Description copied from class:ScanQueryMatcherDelegate toFilter.getNextCellHint(Cell). If no filter, returnnull.- Specified by:
getNextKeyHintin classScanQueryMatcher- Throws:
IOException
-
reset
- Specified by:
resetin classScanQueryMatcher
-
trackDelete
-
create
public static CompactionScanQueryMatcher create(ScanInfo scanInfo, ScanType scanType, long readPointToUse, long earliestPutTs, long oldestUnexpiredTS, long now, byte[] dropDeletesFromRow, byte[] dropDeletesToRow, RegionCoprocessorHost regionCoprocessorHost) throws IOException - Throws:
IOException
-