@InterfaceAudience.Private public abstract class CompactionScanQueryMatcher extends ScanQueryMatcher
ScanQueryMatcher.MatchCode
Modifier and Type | Field and Description |
---|---|
protected DeleteTracker |
deletes
Keeps track of deletes
|
protected KeepDeletedCells |
keepDeletedCells
whether to return deleted rows
|
protected long |
maxReadPointToTrackVersions
readPoint over which the KVs are unconditionally included
|
columns, currentRow, now, oldestUnexpiredTS, rowComparator, startKey
Modifier | Constructor and Description |
---|---|
protected |
CompactionScanQueryMatcher(ScanInfo scanInfo,
DeleteTracker deletes,
ColumnTracker columnTracker,
long readPointToUse,
long oldestUnexpiredTS,
long now) |
Modifier and Type | Method and Description |
---|---|
void |
beforeShipped()
The action that needs to be performed before
Shipper.shipped() is performed n |
static CompactionScanQueryMatcher |
create(ScanInfo scanInfo,
ScanType scanType,
long readPointToUse,
long earliestPutTs,
long oldestUnexpiredTS,
long now,
byte[] dropDeletesFromRow,
byte[] dropDeletesToRow,
RegionCoprocessorHost regionCoprocessorHost) |
Filter |
getFilter()
Returns the Filter
|
Cell |
getNextKeyHint(Cell cell)
Delegate to
Filter.getNextCellHint(Cell) . |
boolean |
hasNullColumnInQuery()
Returns whether there is an null column in the query
|
boolean |
isUserScan() |
boolean |
moreRowsMayExistAfter(Cell cell) |
protected void |
reset() |
protected void |
trackDelete(Cell cell) |
checkColumn, checkDeleted, clearCurrentRow, compareKeyForNextColumn, compareKeyForNextRow, createStartKeyFromRow, currentRow, getKeyForNextColumn, getStartKey, getTrackers, match, preCheck, setToNewRow
protected final long maxReadPointToTrackVersions
protected final DeleteTracker deletes
protected final KeepDeletedCells keepDeletedCells
protected CompactionScanQueryMatcher(ScanInfo scanInfo, DeleteTracker deletes, ColumnTracker columnTracker, long readPointToUse, long oldestUnexpiredTS, long now)
public void beforeShipped() throws IOException
ShipperListener
Shipper.shipped()
is performed nbeforeShipped
in interface ShipperListener
beforeShipped
in class ScanQueryMatcher
IOException
public boolean hasNullColumnInQuery()
ScanQueryMatcher
hasNullColumnInQuery
in class ScanQueryMatcher
public boolean isUserScan()
isUserScan
in class ScanQueryMatcher
public boolean moreRowsMayExistAfter(Cell cell)
moreRowsMayExistAfter
in class ScanQueryMatcher
stopRow
or we are scanning on row only because this Scan is for a Get,
etc.public Filter getFilter()
ScanQueryMatcher
getFilter
in class ScanQueryMatcher
public Cell getNextKeyHint(Cell cell) throws IOException
ScanQueryMatcher
Filter.getNextCellHint(Cell)
. If no filter, return null
.getNextKeyHint
in class ScanQueryMatcher
IOException
protected void reset()
reset
in class ScanQueryMatcher
protected final void trackDelete(Cell cell)
public static CompactionScanQueryMatcher create(ScanInfo scanInfo, ScanType scanType, long readPointToUse, long earliestPutTs, long oldestUnexpiredTS, long now, byte[] dropDeletesFromRow, byte[] dropDeletesToRow, RegionCoprocessorHost regionCoprocessorHost) throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.