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
Modifier and TypeFieldDescriptionprotected final DeleteTracker
Keeps track of deletesprotected final KeepDeletedCells
whether to return deleted rowsprotected final long
readPoint 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
ModifierConstructorDescriptionprotected
CompactionScanQueryMatcher
(ScanInfo scanInfo, DeleteTracker deletes, ColumnTracker columnTracker, long readPointToUse, long oldestUnexpiredTS, long now) -
Method Summary
Modifier and TypeMethodDescriptionvoid
The action that needs to be performed beforeShipper.shipped()
is performedstatic CompactionScanQueryMatcher
create
(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)
.boolean
Returns whether there is an null column in the queryboolean
boolean
protected void
reset()
protected final void
trackDelete
(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:ShipperListener
The action that needs to be performed beforeShipper.shipped()
is performed- Specified by:
beforeShipped
in interfaceShipperListener
- Overrides:
beforeShipped
in classScanQueryMatcher
- Throws:
IOException
-
hasNullColumnInQuery
Description copied from class:ScanQueryMatcher
Returns whether there is an null column in the query- Specified by:
hasNullColumnInQuery
in classScanQueryMatcher
-
isUserScan
- Specified by:
isUserScan
in classScanQueryMatcher
-
moreRowsMayExistAfter
- Specified by:
moreRowsMayExistAfter
in classScanQueryMatcher
- Returns:
- Returns false if we know there are no more rows to be scanned (We've reached the
stopRow
or we are scanning on row only because this Scan is for a Get, etc.
-
getFilter
Description copied from class:ScanQueryMatcher
Returns the Filter- Specified by:
getFilter
in classScanQueryMatcher
-
getNextKeyHint
Description copied from class:ScanQueryMatcher
Delegate toFilter.getNextCellHint(Cell)
. If no filter, returnnull
.- Specified by:
getNextKeyHint
in classScanQueryMatcher
- Throws:
IOException
-
reset
- Specified by:
reset
in 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
-