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

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

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

Any timestamps in the columns are ignored, use timeRange to select by timestamp. Max versions defaults to 1.

See Also:
Serialized Form

Nested Class Summary
static class TScan._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 int caching
           
 List<TColumn> columns
           
 int maxVersions
           
static Map<TScan._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer startRow
           
 ByteBuffer stopRow
           
 TTimeRange timeRange
           
 
Constructor Summary
TScan()
           
TScan(TScan other)
          Performs a deep copy on other.
 
Method Summary
 void addToColumns(TColumn elem)
           
 ByteBuffer bufferForStartRow()
           
 ByteBuffer bufferForStopRow()
           
 void clear()
           
 int compareTo(TScan other)
           
 TScan deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TScan that)
           
 TScan._Fields fieldForId(int fieldId)
           
 int getCaching()
           
 List<TColumn> getColumns()
           
 Iterator<TColumn> getColumnsIterator()
           
 int getColumnsSize()
           
 Object getFieldValue(TScan._Fields field)
           
 int getMaxVersions()
           
 byte[] getStartRow()
           
 byte[] getStopRow()
           
 TTimeRange getTimeRange()
           
 int hashCode()
           
 boolean isSet(TScan._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetCaching()
          Returns true if field caching 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 isSetMaxVersions()
          Returns true if field maxVersions is set (has been assigned a value) and false otherwise
 boolean isSetStartRow()
          Returns true if field startRow is set (has been assigned a value) and false otherwise
 boolean isSetStopRow()
          Returns true if field stopRow 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
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TScan setCaching(int caching)
           
 void setCachingIsSet(boolean value)
           
 TScan setColumns(List<TColumn> columns)
           
 void setColumnsIsSet(boolean value)
           
 void setFieldValue(TScan._Fields field, Object value)
           
 TScan setMaxVersions(int maxVersions)
           
 void setMaxVersionsIsSet(boolean value)
           
 TScan setStartRow(byte[] startRow)
           
 TScan setStartRow(ByteBuffer startRow)
           
 void setStartRowIsSet(boolean value)
           
 TScan setStopRow(byte[] stopRow)
           
 TScan setStopRow(ByteBuffer stopRow)
           
 void setStopRowIsSet(boolean value)
           
 TScan setTimeRange(TTimeRange timeRange)
           
 void setTimeRangeIsSet(boolean value)
           
 String toString()
           
 void unsetCaching()
           
 void unsetColumns()
           
 void unsetMaxVersions()
           
 void unsetStartRow()
           
 void unsetStopRow()
           
 void unsetTimeRange()
           
 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

startRow

public ByteBuffer startRow

stopRow

public ByteBuffer stopRow

columns

public List<TColumn> columns

caching

public int caching

maxVersions

public int maxVersions

timeRange

public TTimeRange timeRange

metaDataMap

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

TScan

public TScan()

TScan

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

Method Detail

deepCopy

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

clear

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

getStartRow

public byte[] getStartRow()

bufferForStartRow

public ByteBuffer bufferForStartRow()

setStartRow

public TScan setStartRow(byte[] startRow)

setStartRow

public TScan setStartRow(ByteBuffer startRow)

unsetStartRow

public void unsetStartRow()

isSetStartRow

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


setStartRowIsSet

public void setStartRowIsSet(boolean value)

getStopRow

public byte[] getStopRow()

bufferForStopRow

public ByteBuffer bufferForStopRow()

setStopRow

public TScan setStopRow(byte[] stopRow)

setStopRow

public TScan setStopRow(ByteBuffer stopRow)

unsetStopRow

public void unsetStopRow()

isSetStopRow

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


setStopRowIsSet

public void setStopRowIsSet(boolean value)

getColumnsSize

public int getColumnsSize()

getColumnsIterator

public Iterator<TColumn> getColumnsIterator()

addToColumns

public void addToColumns(TColumn elem)

getColumns

public List<TColumn> getColumns()

setColumns

public TScan 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)

getCaching

public int getCaching()

setCaching

public TScan setCaching(int caching)

unsetCaching

public void unsetCaching()

isSetCaching

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


setCachingIsSet

public void setCachingIsSet(boolean value)

getMaxVersions

public int getMaxVersions()

setMaxVersions

public TScan 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)

getTimeRange

public TTimeRange getTimeRange()

setTimeRange

public TScan 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)

setFieldValue

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

getFieldValue

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

isSet

public boolean isSet(TScan._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<TScan,TScan._Fields>

equals

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

equals

public boolean equals(TScan that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TScan._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TScan,TScan._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<TScan,TScan._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<TScan,TScan._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 © 2012 The Apache Software Foundation. All Rights Reserved.