org.apache.hadoop.hbase.thrift2.generated
Class TGet

java.lang.Object
  extended by org.apache.hadoop.hbase.thrift2.generated.TGet
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TGet>, org.apache.thrift.TBase<TGet,TGet._Fields>

public class TGet
extends Object
implements org.apache.thrift.TBase<TGet,TGet._Fields>, Serializable, Cloneable

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.

See Also:
Serialized Form

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
           
 TAuthorization authorizations
           
 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()
           
 TAuthorization getAuthorizations()
           
 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 isSetAuthorizations()
          Returns true if field authorizations 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 setAuthorizations(TAuthorization authorizations)
           
 void setAuthorizationsIsSet(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 unsetAuthorizations()
           
 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

row

public ByteBuffer row

columns

public List<TColumn> columns

timestamp

public long timestamp

timeRange

public TTimeRange timeRange

maxVersions

public int maxVersions

filterString

public ByteBuffer filterString

attributes

public Map<ByteBuffer,ByteBuffer> attributes

authorizations

public TAuthorization authorizations

metaDataMap

public static final Map<TGet._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

TGet

public TGet()

TGet

public TGet(ByteBuffer row)

TGet

public TGet(TGet other)
Performs a deep copy on other.

Method Detail

deepCopy

public TGet deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TGet,TGet._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TGet,TGet._Fields>

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public TGet setRow(byte[] row)

setRow

public TGet setRow(ByteBuffer row)

unsetRow

public void unsetRow()

isSetRow

public boolean isSetRow()
Returns true if field row is set (has been assigned a value) and false otherwise


setRowIsSet

public void setRowIsSet(boolean value)

getColumnsSize

public int getColumnsSize()

getColumnsIterator

public Iterator<TColumn> getColumnsIterator()

addToColumns

public void addToColumns(TColumn elem)

getColumns

public List<TColumn> getColumns()

setColumns

public TGet setColumns(List<TColumn> columns)

unsetColumns

public void unsetColumns()

isSetColumns

public boolean isSetColumns()
Returns true if field columns is set (has been assigned a value) and false otherwise


setColumnsIsSet

public void setColumnsIsSet(boolean value)

getTimestamp

public long getTimestamp()

setTimestamp

public TGet setTimestamp(long timestamp)

unsetTimestamp

public void unsetTimestamp()

isSetTimestamp

public boolean isSetTimestamp()
Returns true if field timestamp is set (has been assigned a value) and false otherwise


setTimestampIsSet

public void setTimestampIsSet(boolean value)

getTimeRange

public TTimeRange getTimeRange()

setTimeRange

public TGet setTimeRange(TTimeRange timeRange)

unsetTimeRange

public void unsetTimeRange()

isSetTimeRange

public boolean isSetTimeRange()
Returns true if field timeRange is set (has been assigned a value) and false otherwise


setTimeRangeIsSet

public void setTimeRangeIsSet(boolean value)

getMaxVersions

public int getMaxVersions()

setMaxVersions

public TGet setMaxVersions(int maxVersions)

unsetMaxVersions

public void unsetMaxVersions()

isSetMaxVersions

public boolean isSetMaxVersions()
Returns true if field maxVersions is set (has been assigned a value) and false otherwise


setMaxVersionsIsSet

public void setMaxVersionsIsSet(boolean value)

getFilterString

public byte[] getFilterString()

bufferForFilterString

public ByteBuffer bufferForFilterString()

setFilterString

public TGet setFilterString(byte[] filterString)

setFilterString

public TGet setFilterString(ByteBuffer filterString)

unsetFilterString

public void unsetFilterString()

isSetFilterString

public boolean isSetFilterString()
Returns true if field filterString is set (has been assigned a value) and false otherwise


setFilterStringIsSet

public void setFilterStringIsSet(boolean value)

getAttributesSize

public int getAttributesSize()

putToAttributes

public void putToAttributes(ByteBuffer key,
                            ByteBuffer val)

getAttributes

public Map<ByteBuffer,ByteBuffer> getAttributes()

setAttributes

public TGet setAttributes(Map<ByteBuffer,ByteBuffer> attributes)

unsetAttributes

public void unsetAttributes()

isSetAttributes

public boolean isSetAttributes()
Returns true if field attributes is set (has been assigned a value) and false otherwise


setAttributesIsSet

public void setAttributesIsSet(boolean value)

getAuthorizations

public TAuthorization getAuthorizations()

setAuthorizations

public TGet setAuthorizations(TAuthorization authorizations)

unsetAuthorizations

public void unsetAuthorizations()

isSetAuthorizations

public boolean isSetAuthorizations()
Returns true if field authorizations is set (has been assigned a value) and false otherwise


setAuthorizationsIsSet

public void setAuthorizationsIsSet(boolean value)

setFieldValue

public void setFieldValue(TGet._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TGet,TGet._Fields>

getFieldValue

public Object getFieldValue(TGet._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TGet,TGet._Fields>

isSet

public boolean isSet(TGet._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<TGet,TGet._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TGet that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TGet other)
Specified by:
compareTo in interface Comparable<TGet>

fieldForId

public TGet._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TGet,TGet._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TGet,TGet._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<TGet,TGet._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.