|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.regionserver.ScanQueryMatcher
@InterfaceAudience.Private public class ScanQueryMatcher
A query matcher that is specifically designed for the scan case.
Nested Class Summary | |
---|---|
static class |
ScanQueryMatcher.MatchCode
match(org.apache.hadoop.hbase.KeyValue) return codes. |
Field Summary | |
---|---|
protected long |
maxReadPointToTrackVersions
readPoint over which the KVs are unconditionally included |
Constructor Summary | |
---|---|
ScanQueryMatcher(Scan scan,
ScanInfo scanInfo,
NavigableSet<byte[]> columns,
long readPointToUse,
long earliestPutTs,
long oldestUnexpiredTS,
byte[] dropDeletesFromRow,
byte[] dropDeletesToRow)
Construct a QueryMatcher for a scan that drop deletes from a limited range of rows. |
|
ScanQueryMatcher(Scan scan,
ScanInfo scanInfo,
NavigableSet<byte[]> columns,
ScanType scanType,
long readPointToUse,
long earliestPutTs,
long oldestUnexpiredTS)
Construct a QueryMatcher for a scan |
Method Summary | |
---|---|
KeyValue |
getKeyForNextColumn(KeyValue kv)
|
KeyValue |
getKeyForNextRow(KeyValue kv)
|
KeyValue |
getNextKeyHint(KeyValue kv)
|
KeyValue |
getStartKey()
|
boolean |
hasNullColumnInQuery()
|
ScanQueryMatcher.MatchCode |
match(KeyValue kv)
Determines if the caller should do one of several things: - seek/skip to the next row (MatchCode.SEEK_NEXT_ROW) - seek/skip to the next column (MatchCode.SEEK_NEXT_COL) - include the current KeyValue (MatchCode.INCLUDE) - ignore the current KeyValue (MatchCode.SKIP) - got to the next row (MatchCode.DONE) |
boolean |
moreRowsMayExistAfter(KeyValue kv)
|
void |
reset()
|
void |
setRow(byte[] row,
int offset,
short length)
Set current row |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected long maxReadPointToTrackVersions
Constructor Detail |
---|
public ScanQueryMatcher(Scan scan, ScanInfo scanInfo, NavigableSet<byte[]> columns, ScanType scanType, long readPointToUse, long earliestPutTs, long oldestUnexpiredTS)
scan
- scanInfo
- The store's immutable scan infocolumns
- scanType
- Type of the scanearliestPutTs
- Earliest put seen in any of the store files.oldestUnexpiredTS
- the oldest timestamp we are interested in,
based on TTLpublic ScanQueryMatcher(Scan scan, ScanInfo scanInfo, NavigableSet<byte[]> columns, long readPointToUse, long earliestPutTs, long oldestUnexpiredTS, byte[] dropDeletesFromRow, byte[] dropDeletesToRow)
scan
- scanInfo
- The store's immutable scan infocolumns
- earliestPutTs
- Earliest put seen in any of the store files.oldestUnexpiredTS
- the oldest timestamp we are interested in,
based on TTLdropDeletesFromRow
- The inclusive left bound of the range; can be EMPTY_START_ROW.dropDeletesToRow
- The exclusive right bound of the range; can be EMPTY_END_ROW.Method Detail |
---|
public boolean hasNullColumnInQuery()
public ScanQueryMatcher.MatchCode match(KeyValue kv) throws IOException
kv
- KeyValue to check
IOException
- in case there is an internal consistency problem
caused by a data corruption.public boolean moreRowsMayExistAfter(KeyValue kv)
public void setRow(byte[] row, int offset, short length)
row
- public void reset()
public KeyValue getStartKey()
public KeyValue getNextKeyHint(KeyValue kv) throws IOException
IOException
public KeyValue getKeyForNextColumn(KeyValue kv)
public KeyValue getKeyForNextRow(KeyValue kv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |