|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.stargate.model.ScannerModel
public class ScannerModel
A representation of Scanner parameters.
<complexType name="Scanner"> <attribute name="startRow" type="base64Binary"></attribute> <attribute name="endRow" type="base64Binary"></attribute> <attribute name="columns" type="base64Binary"></attribute> <attribute name="batch" type="int"></attribute> <attribute name="startTime" type="int"></attribute> <attribute name="endTime" type="int"></attribute> </complexType>
Constructor Summary | |
---|---|
ScannerModel()
Default constructor |
|
ScannerModel(byte[] startRow,
byte[] endRow,
List<byte[]> columns,
int batch,
long endTime)
Constructor |
|
ScannerModel(byte[] startRow,
byte[] endRow,
List<byte[]> columns,
int batch,
long startTime,
long endTime)
Constructor |
Method Summary | |
---|---|
void |
addColumn(byte[] column)
Add a column to the column set |
byte[] |
createProtobufOutput()
|
int |
getBatch()
|
List<byte[]> |
getColumns()
|
byte[] |
getEndRow()
|
long |
getEndTime()
|
ProtobufMessageHandler |
getObjectFromMessage(byte[] message)
Initialize the model from a protobuf representation. |
byte[] |
getStartRow()
|
long |
getStartTime()
|
boolean |
hasEndRow()
|
boolean |
hasStartRow()
|
void |
setBatch(int batch)
|
void |
setEndRow(byte[] endRow)
|
void |
setEndTime(long endTime)
|
void |
setStartRow(byte[] startRow)
|
void |
setStartTime(long startTime)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScannerModel()
public ScannerModel(byte[] startRow, byte[] endRow, List<byte[]> columns, int batch, long endTime)
startRow
- the start key of the row-rangeendRow
- the end key of the row-rangecolumns
- the columns to scanbatch
- the number of values to return in batchendTime
- the upper bound on timestamps of values of interest
(values with timestamps later than this are excluded)public ScannerModel(byte[] startRow, byte[] endRow, List<byte[]> columns, int batch, long startTime, long endTime)
startRow
- the start key of the row-rangeendRow
- the end key of the row-rangecolumns
- the columns to scanbatch
- the number of values to return in batchstartTime
- the lower bound on timestamps of values of interest
(values with timestamps earlier than this are excluded)endTime
- the upper bound on timestamps of values of interest
(values with timestamps later than this are excluded)Method Detail |
---|
public void addColumn(byte[] column)
column
- the column name, as <column>(:<qualifier>)?public boolean hasStartRow()
public byte[] getStartRow()
public boolean hasEndRow()
public byte[] getEndRow()
public List<byte[]> getColumns()
public int getBatch()
public long getStartTime()
public long getEndTime()
public void setStartRow(byte[] startRow)
startRow
- start rowpublic void setEndRow(byte[] endRow)
endRow
- end rowpublic void setBatch(int batch)
batch
- the number of cells to return in batchpublic void setStartTime(long startTime)
startTime
- the lower bound on timestamps of values of interestpublic void setEndTime(long endTime)
endTime
- the upper bound on timestamps of values of interestpublic byte[] createProtobufOutput()
createProtobufOutput
in interface ProtobufMessageHandler
public ProtobufMessageHandler getObjectFromMessage(byte[] message) throws IOException
ProtobufMessageHandler
getObjectFromMessage
in interface ProtobufMessageHandler
message
- the raw bytes of the protobuf message
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |