org.apache.hadoop.hbase.regionserver
Class ScanQueryMatcher
java.lang.Object
org.apache.hadoop.hbase.regionserver.ScanQueryMatcher
public class ScanQueryMatcher
- extends Object
A query matcher that is specifically designed for the scan case.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxReadPointToTrackVersions
protected long maxReadPointToTrackVersions
- readPoint over which the KVs are unconditionally included
ScanQueryMatcher
public ScanQueryMatcher(Scan scan,
Store.ScanInfo scanInfo,
NavigableSet<byte[]> columns,
ScanType scanType,
long readPointToUse,
long earliestPutTs,
long oldestUnexpiredTS)
- Construct a QueryMatcher for a scan
- Parameters:
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 TTL
hasNullColumnInQuery
public boolean hasNullColumnInQuery()
- Returns:
- whether there is an null column in the query
match
public ScanQueryMatcher.MatchCode match(KeyValue kv)
throws IOException
- 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)
- Parameters:
kv
- KeyValue to check
- Returns:
- The match code instance.
- Throws:
IOException
- in case there is an internal consistency problem
caused by a data corruption.
moreRowsMayExistAfter
public boolean moreRowsMayExistAfter(KeyValue kv)
setRow
public void setRow(byte[] row,
int offset,
short length)
- Set current row
- Parameters:
row
-
reset
public void reset()
getStartKey
public KeyValue getStartKey()
- Returns:
- the start key
getNextKeyHint
public KeyValue getNextKeyHint(KeyValue kv)
getKeyForNextColumn
public KeyValue getKeyForNextColumn(KeyValue kv)
getKeyForNextRow
public KeyValue getKeyForNextRow(KeyValue kv)
Copyright © 2015 The Apache Software Foundation. All Rights Reserved.