org.apache.hadoop.hbase
Class HAbstractScanner

java.lang.Object
  extended by org.apache.hadoop.hbase.HAbstractScanner
All Implemented Interfaces:
HInternalScannerInterface

public abstract class HAbstractScanner
extends Object
implements HInternalScannerInterface

Abstract base class that implements the HScannerInterface. Used by the concrete HMemcacheScanner and HStoreScanners


Field Summary
protected  DataInputBuffer inbuf
           
protected  HStoreKey[] keys
           
protected  TreeMap<Text,Vector<org.apache.hadoop.hbase.HAbstractScanner.ColumnMatcher>> okCols
           
protected  DataOutputBuffer outbuf
           
protected  boolean scannerClosed
           
protected  long timestamp
           
protected  byte[][] vals
           
 
Method Summary
abstract  void close()
          Mechanism used to shut down the whole scan
 boolean isMultipleMatchScanner()
           
 boolean isWildcardScanner()
           
 boolean next(HStoreKey key, TreeMap<Text,byte[]> results)
          Get the next set of values for this scanner.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

okCols

protected TreeMap<Text,Vector<org.apache.hadoop.hbase.HAbstractScanner.ColumnMatcher>> okCols

scannerClosed

protected boolean scannerClosed

keys

protected HStoreKey[] keys

vals

protected byte[][] vals

timestamp

protected long timestamp

outbuf

protected DataOutputBuffer outbuf

inbuf

protected DataInputBuffer inbuf
Method Detail

close

public abstract void close()
Mechanism used to shut down the whole scan

Specified by:
close in interface HInternalScannerInterface

isWildcardScanner

public boolean isWildcardScanner()
Specified by:
isWildcardScanner in interface HInternalScannerInterface
Returns:
true if the scanner is matching a column family or regex

isMultipleMatchScanner

public boolean isMultipleMatchScanner()
Specified by:
isMultipleMatchScanner in interface HInternalScannerInterface
Returns:
true if the scanner is matching multiple column family members

next

public boolean next(HStoreKey key,
                    TreeMap<Text,byte[]> results)
             throws IOException
Get the next set of values for this scanner.

Specified by:
next in interface HInternalScannerInterface
Parameters:
key - The key that matched
results - All the results for key
Returns:
true if a match was found
Throws:
IOException
See Also:
HScannerInterface.next(org.apache.hadoop.hbase.HStoreKey, java.util.TreeMap)


Copyright © 2006 The Apache Software Foundation