org.apache.hadoop.hbase.regionserver
Class StoreFileGetScan

java.lang.Object
  extended by org.apache.hadoop.hbase.regionserver.StoreFileGetScan

public class StoreFileGetScan
extends Object

Use to execute a get by scanning all the store files in order.


Constructor Summary
StoreFileGetScan(List<HFileScanner> scanners, QueryMatcher matcher)
          Constructor
 
Method Summary
 void get(List<KeyValue> result)
          Performs a GET operation across multiple StoreFiles.
 boolean getStoreFile(HFileScanner scanner, List<KeyValue> result)
          Performs a GET operation on a single StoreFile.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreFileGetScan

public StoreFileGetScan(List<HFileScanner> scanners,
                        QueryMatcher matcher)
Constructor

Parameters:
scanners -
matcher -
Method Detail

get

public void get(List<KeyValue> result)
         throws IOException
Performs a GET operation across multiple StoreFiles.

This style of StoreFile scanning goes through each StoreFile in its entirety, most recent first, before proceeding to the next StoreFile.

This strategy allows for optimal, stateless (no persisted Scanners) early-out scenarios.

Parameters:
result - List to add results to
Throws:
IOException

getStoreFile

public boolean getStoreFile(HFileScanner scanner,
                            List<KeyValue> result)
                     throws IOException
Performs a GET operation on a single StoreFile.

Parameters:
scanner -
result -
Returns:
true if done with this store, false if must continue to next
Throws:
IOException


Copyright © 2010 The Apache Software Foundation