public class ScanQueryMatcher extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ScanQueryMatcher.MatchCode
match(org.apache.hadoop.hbase.KeyValue) return codes. |
Modifier and Type | Field and Description |
---|---|
protected long |
maxReadPointToTrackVersions
readPoint over which the KVs are unconditionally included
|
Constructor and Description |
---|
ScanQueryMatcher(Scan scan,
Store.ScanInfo scanInfo,
NavigableSet<byte[]> columns,
ScanType scanType,
long readPointToUse,
long earliestPutTs,
long oldestUnexpiredTS)
Construct a QueryMatcher for a scan
|
Modifier and Type | Method and Description |
---|---|
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
|
protected long maxReadPointToTrackVersions
public ScanQueryMatcher(Scan scan, Store.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 boolean hasNullColumnInQuery()
public ScanQueryMatcher.MatchCode match(KeyValue kv) throws IOException
kv
- KeyValue to checkIOException
- 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()
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.