org.apache.hadoop.hbase
Interface HInternalScannerInterface

All Known Implementing Classes:
HAbstractScanner

public interface HInternalScannerInterface

Internally, we need to be able to determine if the scanner is doing wildcard column matches (when only a column family is specified or if a column regex is specified) or if multiple members of the same column family were specified. If so, we need to ignore the timestamp to ensure that we get all the family members, as they may have been last updated at different times.


Method Summary
 void close()
          Close the scanner.
 boolean isMultipleMatchScanner()
           
 boolean isWildcardScanner()
           
 boolean next(HStoreKey key, TreeMap<Text,byte[]> results)
          Grab the next row's worth of values.
 

Method Detail

next

boolean next(HStoreKey key,
             TreeMap<Text,byte[]> results)
             throws IOException
Grab the next row's worth of values. The HScanner will return the most recent data value for each row that is not newer than the target time. If a dataFilter is defined, it will be used to skip rows that do not match its criteria. It may cause the scanner to stop prematurely if it knows that it will no longer accept the remaining results.

Parameters:
key - HStoreKey containing row and timestamp
results - Map of column/value pairs
Returns:
true if a value was found
Throws:
IOException

close

void close()
Close the scanner.


isWildcardScanner

boolean isWildcardScanner()
Returns:
true if the scanner is matching a column family or regex

isMultipleMatchScanner

boolean isMultipleMatchScanner()
Returns:
true if the scanner is matching multiple column family members


Copyright © 2006 The Apache Software Foundation