|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.thrift2.generated.TGet
public class TGet
Used to perform Get operations on a single row. The scope can be further narrowed down by specifying a list of columns or column families. To get everything for a row, instantiate a Get object with just the row to get. To further define the scope of what to get you can add a timestamp or time range with an optional maximum number of versions to return. If you specify a time range and a timestamp the range is ignored. Timestamps on TColumns are ignored.
Nested Class Summary | |
---|---|
static class |
TGet._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
Map<ByteBuffer,ByteBuffer> |
attributes
|
List<TColumn> |
columns
|
ByteBuffer |
filterString
|
int |
maxVersions
|
static Map<TGet._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
ByteBuffer |
row
|
TTimeRange |
timeRange
|
long |
timestamp
|
Constructor Summary | |
---|---|
TGet()
|
|
TGet(ByteBuffer row)
|
|
TGet(TGet other)
Performs a deep copy on other. |
Method Summary | |
---|---|
void |
addToColumns(TColumn elem)
|
ByteBuffer |
bufferForFilterString()
|
ByteBuffer |
bufferForRow()
|
void |
clear()
|
int |
compareTo(TGet other)
|
TGet |
deepCopy()
|
boolean |
equals(Object that)
|
boolean |
equals(TGet that)
|
TGet._Fields |
fieldForId(int fieldId)
|
Map<ByteBuffer,ByteBuffer> |
getAttributes()
|
int |
getAttributesSize()
|
List<TColumn> |
getColumns()
|
Iterator<TColumn> |
getColumnsIterator()
|
int |
getColumnsSize()
|
Object |
getFieldValue(TGet._Fields field)
|
byte[] |
getFilterString()
|
int |
getMaxVersions()
|
byte[] |
getRow()
|
TTimeRange |
getTimeRange()
|
long |
getTimestamp()
|
int |
hashCode()
|
boolean |
isSet(TGet._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise |
boolean |
isSetAttributes()
Returns true if field attributes is set (has been assigned a value) and false otherwise |
boolean |
isSetColumns()
Returns true if field columns is set (has been assigned a value) and false otherwise |
boolean |
isSetFilterString()
Returns true if field filterString is set (has been assigned a value) and false otherwise |
boolean |
isSetMaxVersions()
Returns true if field maxVersions is set (has been assigned a value) and false otherwise |
boolean |
isSetRow()
Returns true if field row is set (has been assigned a value) and false otherwise |
boolean |
isSetTimeRange()
Returns true if field timeRange is set (has been assigned a value) and false otherwise |
boolean |
isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise |
void |
putToAttributes(ByteBuffer key,
ByteBuffer val)
|
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
TGet |
setAttributes(Map<ByteBuffer,ByteBuffer> attributes)
|
void |
setAttributesIsSet(boolean value)
|
TGet |
setColumns(List<TColumn> columns)
|
void |
setColumnsIsSet(boolean value)
|
void |
setFieldValue(TGet._Fields field,
Object value)
|
TGet |
setFilterString(byte[] filterString)
|
TGet |
setFilterString(ByteBuffer filterString)
|
void |
setFilterStringIsSet(boolean value)
|
TGet |
setMaxVersions(int maxVersions)
|
void |
setMaxVersionsIsSet(boolean value)
|
TGet |
setRow(byte[] row)
|
TGet |
setRow(ByteBuffer row)
|
void |
setRowIsSet(boolean value)
|
TGet |
setTimeRange(TTimeRange timeRange)
|
void |
setTimeRangeIsSet(boolean value)
|
TGet |
setTimestamp(long timestamp)
|
void |
setTimestampIsSet(boolean value)
|
String |
toString()
|
void |
unsetAttributes()
|
void |
unsetColumns()
|
void |
unsetFilterString()
|
void |
unsetMaxVersions()
|
void |
unsetRow()
|
void |
unsetTimeRange()
|
void |
unsetTimestamp()
|
void |
validate()
|
void |
write(org.apache.thrift.protocol.TProtocol oprot)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public ByteBuffer row
public List<TColumn> columns
public long timestamp
public TTimeRange timeRange
public int maxVersions
public ByteBuffer filterString
public Map<ByteBuffer,ByteBuffer> attributes
public static final Map<TGet._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public TGet()
public TGet(ByteBuffer row)
public TGet(TGet other)
Method Detail |
---|
public TGet deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TGet,TGet._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TGet,TGet._Fields>
public byte[] getRow()
public ByteBuffer bufferForRow()
public TGet setRow(byte[] row)
public TGet setRow(ByteBuffer row)
public void unsetRow()
public boolean isSetRow()
public void setRowIsSet(boolean value)
public int getColumnsSize()
public Iterator<TColumn> getColumnsIterator()
public void addToColumns(TColumn elem)
public List<TColumn> getColumns()
public TGet setColumns(List<TColumn> columns)
public void unsetColumns()
public boolean isSetColumns()
public void setColumnsIsSet(boolean value)
public long getTimestamp()
public TGet setTimestamp(long timestamp)
public void unsetTimestamp()
public boolean isSetTimestamp()
public void setTimestampIsSet(boolean value)
public TTimeRange getTimeRange()
public TGet setTimeRange(TTimeRange timeRange)
public void unsetTimeRange()
public boolean isSetTimeRange()
public void setTimeRangeIsSet(boolean value)
public int getMaxVersions()
public TGet setMaxVersions(int maxVersions)
public void unsetMaxVersions()
public boolean isSetMaxVersions()
public void setMaxVersionsIsSet(boolean value)
public byte[] getFilterString()
public ByteBuffer bufferForFilterString()
public TGet setFilterString(byte[] filterString)
public TGet setFilterString(ByteBuffer filterString)
public void unsetFilterString()
public boolean isSetFilterString()
public void setFilterStringIsSet(boolean value)
public int getAttributesSize()
public void putToAttributes(ByteBuffer key, ByteBuffer val)
public Map<ByteBuffer,ByteBuffer> getAttributes()
public TGet setAttributes(Map<ByteBuffer,ByteBuffer> attributes)
public void unsetAttributes()
public boolean isSetAttributes()
public void setAttributesIsSet(boolean value)
public void setFieldValue(TGet._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TGet,TGet._Fields>
public Object getFieldValue(TGet._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TGet,TGet._Fields>
public boolean isSet(TGet._Fields field)
isSet
in interface org.apache.thrift.TBase<TGet,TGet._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(TGet that)
public int hashCode()
hashCode
in class Object
public int compareTo(TGet other)
compareTo
in interface Comparable<TGet>
public TGet._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TGet,TGet._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TGet,TGet._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TGet,TGet._Fields>
org.apache.thrift.TException
public String toString()
toString
in class Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |