org.apache.hadoop.hbase.rest
Class ScannerModel

java.lang.Object
  extended by org.apache.hadoop.hbase.rest.AbstractModel
      extended by org.apache.hadoop.hbase.rest.ScannerModel

public class ScannerModel
extends AbstractModel


Nested Class Summary
protected static class ScannerModel.ScannerMaster
           
 
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.rest.AbstractModel
AbstractModel.Encodings
 
Field Summary
protected static ScannerModel.ScannerMaster scannerMaster
           
 
Fields inherited from class org.apache.hadoop.hbase.rest.AbstractModel
admin, COLON, conf, encoding
 
Constructor Summary
ScannerModel(HBaseConfiguration config, HBaseAdmin admin)
           
 
Method Summary
 boolean scannerClose(Integer id)
           
 Result[] scannerGet(Integer id)
          Returns all rows inbetween the scanners current position and the end of the table.
 Result[] scannerGet(Integer id, Long numRows)
          returns the next numResults Results from the Scaner mapped to Integer id.
 ScannerIdentifier scannerOpen(byte[] tableName)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[] startRow)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[][] columns)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[][] columns, byte[] startRow)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[][] columns, byte[] startRow, long timestamp)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[][] columns, byte[] startRow, long timestamp, RowFilterInterface filter)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[][] columns, byte[] startRow, RowFilterInterface filter)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[][] columns, long timestamp)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[][] columns, long timestamp, RowFilterInterface filter)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[][] columns, RowFilterInterface filter)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[] startRow, long timestamp)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[] startRow, long timestamp, RowFilterInterface filter)
           
 ScannerIdentifier scannerOpen(byte[] tableName, byte[] startRow, RowFilterInterface filter)
           
 ScannerIdentifier scannerOpen(byte[] tableName, long timestamp)
           
 ScannerIdentifier scannerOpen(byte[] tableName, long timestamp, RowFilterInterface filter)
           
 ScannerIdentifier scannerOpen(byte[] tableName, RowFilterInterface filter)
           
 
Methods inherited from class org.apache.hadoop.hbase.rest.AbstractModel
getColumns, initialize, isColumnFamily
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scannerMaster

protected static final ScannerModel.ScannerMaster scannerMaster
Constructor Detail

ScannerModel

public ScannerModel(HBaseConfiguration config,
                    HBaseAdmin admin)
Method Detail

scannerGet

public Result[] scannerGet(Integer id,
                           Long numRows)
                    throws HBaseRestException
returns the next numResults Results from the Scaner mapped to Integer id. If the end of the table is reached, the scanner is closed and all succesfully retrieved rows are returned.

Parameters:
id - id target scanner is mapped to.
numRows - number of results to return.
Returns:
all successfully retrieved rows.
Throws:
HBaseRestException

scannerGet

public Result[] scannerGet(Integer id)
                    throws HBaseRestException
Returns all rows inbetween the scanners current position and the end of the table.

Parameters:
id - id of scanner to use
Returns:
all rows till end of table
Throws:
HBaseRestException

scannerClose

public boolean scannerClose(Integer id)
                     throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     long timestamp)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[] startRow)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[] startRow,
                                     long timestamp)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     RowFilterInterface filter)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     long timestamp,
                                     RowFilterInterface filter)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[] startRow,
                                     RowFilterInterface filter)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[] startRow,
                                     long timestamp,
                                     RowFilterInterface filter)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[][] columns,
                                     long timestamp)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[][] columns)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[][] columns,
                                     byte[] startRow,
                                     long timestamp)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[][] columns,
                                     byte[] startRow)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[][] columns,
                                     long timestamp,
                                     RowFilterInterface filter)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[][] columns,
                                     RowFilterInterface filter)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[][] columns,
                                     byte[] startRow,
                                     long timestamp,
                                     RowFilterInterface filter)
                              throws HBaseRestException
Throws:
HBaseRestException

scannerOpen

public ScannerIdentifier scannerOpen(byte[] tableName,
                                     byte[][] columns,
                                     byte[] startRow,
                                     RowFilterInterface filter)
                              throws HBaseRestException
Throws:
HBaseRestException


Copyright © 2009 The Apache Software Foundation