org.apache.hadoop.hbase.client
Class ScannerCallable

java.lang.Object
  extended by org.apache.hadoop.hbase.client.ServerCallable<RowResult[]>
      extended by org.apache.hadoop.hbase.client.ScannerCallable
All Implemented Interfaces:
Callable<RowResult[]>

public class ScannerCallable
extends ServerCallable<RowResult[]>

Retries scanner operations such as create, next, etc. Used by Scanners made by HTable.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.client.ServerCallable
connection, location, row, server, tableName
 
Constructor Summary
ScannerCallable(HConnection connection, byte[] tableName, byte[][] columns, byte[] startRow, long timestamp, RowFilterInterface filter)
           
 
Method Summary
 RowResult[] call()
           
 int getCaching()
          Get the number of rows that will be fetched on next
protected  byte[][] getColumns()
           
protected  RowFilterInterface getFilter()
           
 HRegionInfo getHRegionInfo()
           
protected  long getTimestamp()
           
 void instantiateServer(boolean reload)
           
protected  long openScanner()
           
 void setCaching(int caching)
          Set the number of rows that will be fetched on next
 void setClose()
          Call this when the next invocation of call should close the scanner
 
Methods inherited from class org.apache.hadoop.hbase.client.ServerCallable
getRegionName, getRow, getServerName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScannerCallable

public ScannerCallable(HConnection connection,
                       byte[] tableName,
                       byte[][] columns,
                       byte[] startRow,
                       long timestamp,
                       RowFilterInterface filter)
Parameters:
connection -
tableName -
columns -
startRow -
timestamp -
filter -
Method Detail

instantiateServer

public void instantiateServer(boolean reload)
                       throws IOException
Overrides:
instantiateServer in class ServerCallable<RowResult[]>
Parameters:
reload -
Throws:
IOException

call

public RowResult[] call()
                 throws IOException
Throws:
IOException

openScanner

protected long openScanner()
                    throws IOException
Throws:
IOException

getColumns

protected byte[][] getColumns()

getTimestamp

protected long getTimestamp()

getFilter

protected RowFilterInterface getFilter()

setClose

public void setClose()
Call this when the next invocation of call should close the scanner


getHRegionInfo

public HRegionInfo getHRegionInfo()
Returns:
the HRegionInfo for the current region

getCaching

public int getCaching()
Get the number of rows that will be fetched on next

Returns:
the number of rows for caching

setCaching

public void setCaching(int caching)
Set the number of rows that will be fetched on next

Parameters:
caching - the number of rows for caching


Copyright © 2008 The Apache Software Foundation