org.apache.hadoop.hbase.rest
Class ScannerModel
java.lang.Object
org.apache.hadoop.hbase.rest.AbstractModel
org.apache.hadoop.hbase.rest.ScannerModel
public class ScannerModel
- extends AbstractModel
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
scannerMaster
protected static final ScannerModel.ScannerMaster scannerMaster
ScannerModel
public ScannerModel(HBaseConfiguration config,
HBaseAdmin admin)
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 © 2010 The Apache Software Foundation