org.apache.hadoop.hbase
Class HAbstractScanner

java.lang.Object
  extended by org.apache.hadoop.hbase.HAbstractScanner
All Implemented Interfaces:
Closeable, Iterable<Map.Entry<HStoreKey,SortedMap<Text,byte[]>>>, HInternalScannerInterface, HScannerInterface

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  HStoreKey[] keys
           
protected  TreeMap<Text,Vector<org.apache.hadoop.hbase.HAbstractScanner.ColumnMatcher>> okCols
           
protected  boolean scannerClosed
           
protected  long timestamp
           
protected  byte[][] vals
           
 
Method Summary
 boolean isMultipleMatchScanner()
          
 boolean isWildcardScanner()
          
 Iterator<Map.Entry<HStoreKey,SortedMap<Text,byte[]>>> iterator()
          
 boolean next(HStoreKey key, SortedMap<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
 
Methods inherited from interface org.apache.hadoop.hbase.HScannerInterface
close
 

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
Method Detail

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,
                    SortedMap<Text,byte[]> results)
             throws IOException
Get the next set of values for this scanner.

Specified by:
next in interface HScannerInterface
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.SortedMap)

iterator

public Iterator<Map.Entry<HStoreKey,SortedMap<Text,byte[]>>> iterator()

Specified by:
iterator in interface Iterable<Map.Entry<HStoreKey,SortedMap<Text,byte[]>>>


Copyright © 2006 The Apache Software Foundation