org.apache.hadoop.hbase.regionserver
Class ScanQueryMatcher

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.QueryMatcher
      extended by org.apache.hadoop.hbase.regionserver.ScanQueryMatcher

public class ScanQueryMatcher
extends QueryMatcher

A query matcher that is specifically designed for the scan case.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.regionserver.QueryMatcher
columns, deletes, filter, oldestStamp, row, startKey, tr
 
Constructor Summary
ScanQueryMatcher(Scan scan, byte[] family, NavigableSet<byte[]> columns, long ttl, KeyValue.KeyComparator rowComparator, int maxVersions)
          Constructs a QueryMatcher for a Scan.
 
Method Summary
 org.apache.hadoop.hbase.regionserver.QueryMatcher.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)
 void reset()
          Resets the current columns and deletes
 void setRow(byte[] row)
          Set current row
 
Methods inherited from class org.apache.hadoop.hbase.regionserver.QueryMatcher
getColumnTracker, getDeleteTracker, getOldestStamp, getRowComparator, getSeekColumn, getStartKey, getTimeRange, isDelete, isDone, isExpired, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScanQueryMatcher

public ScanQueryMatcher(Scan scan,
                        byte[] family,
                        NavigableSet<byte[]> columns,
                        long ttl,
                        KeyValue.KeyComparator rowComparator,
                        int maxVersions)
Constructs a QueryMatcher for a Scan.

Parameters:
scan -
family -
columns -
ttl -
rowComparator -
Method Detail

match

public org.apache.hadoop.hbase.regionserver.QueryMatcher.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)

Overrides:
match in class QueryMatcher
Parameters:
kv - KeyValue to check
Returns:
The match code instance.

setRow

public void setRow(byte[] row)
Set current row

Overrides:
setRow in class QueryMatcher
Parameters:
row -

reset

public void reset()
Description copied from class: QueryMatcher
Resets the current columns and deletes

Overrides:
reset in class QueryMatcher


Copyright © 2009 The Apache Software Foundation