org.apache.hadoop.hbase
Class HAbstractScanner
java.lang.Object
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
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
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 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.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