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

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

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

if no Result is found, row and columnValues will not be set.

See Also:
Serialized Form

Nested Class Summary
static class TResult._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 List<TColumnValue> columnValues
           
static Map<TResult._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 
Constructor Summary
TResult()
           
TResult(List<TColumnValue> columnValues)
           
TResult(TResult other)
          Performs a deep copy on other.
 
Method Summary
 void addToColumnValues(TColumnValue elem)
           
 ByteBuffer bufferForRow()
           
 void clear()
           
 int compareTo(TResult other)
           
 TResult deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TResult that)
           
 TResult._Fields fieldForId(int fieldId)
           
 List<TColumnValue> getColumnValues()
           
 Iterator<TColumnValue> getColumnValuesIterator()
           
 int getColumnValuesSize()
           
 Object getFieldValue(TResult._Fields field)
           
 byte[] getRow()
           
 int hashCode()
           
 boolean isSet(TResult._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetColumnValues()
          Returns true if field columnValues 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
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TResult setColumnValues(List<TColumnValue> columnValues)
           
 void setColumnValuesIsSet(boolean value)
           
 void setFieldValue(TResult._Fields field, Object value)
           
 TResult setRow(byte[] row)
           
 TResult setRow(ByteBuffer row)
           
 void setRowIsSet(boolean value)
           
 String toString()
           
 void unsetColumnValues()
           
 void unsetRow()
           
 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

columnValues

public List<TColumnValue> columnValues

metaDataMap

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

TResult

public TResult()

TResult

public TResult(List<TColumnValue> columnValues)

TResult

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

Method Detail

deepCopy

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

clear

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

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public TResult setRow(byte[] row)

setRow

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

getColumnValuesSize

public int getColumnValuesSize()

getColumnValuesIterator

public Iterator<TColumnValue> getColumnValuesIterator()

addToColumnValues

public void addToColumnValues(TColumnValue elem)

getColumnValues

public List<TColumnValue> getColumnValues()

setColumnValues

public TResult setColumnValues(List<TColumnValue> columnValues)

unsetColumnValues

public void unsetColumnValues()

isSetColumnValues

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


setColumnValuesIsSet

public void setColumnValuesIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(TResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TResult._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TResult,TResult._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<TResult,TResult._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<TResult,TResult._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.