org.apache.hadoop.hbase
Class HAbstractScanner
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 matchedresults
- 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