org.apache.hadoop.hbase.thrift.generated
Class TRowResult

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

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

Holds row name and then a map of columns to cells.

See Also:
Serialized Form

Nested Class Summary
static class TRowResult._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 Map<byte[],TCell> columns
           
static Map<TRowResult._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 byte[] row
           
 
Constructor Summary
TRowResult()
           
TRowResult(byte[] row, Map<byte[],TCell> columns)
           
TRowResult(TRowResult other)
          Performs a deep copy on other.
 
Method Summary
 TRowResult clone()
          Deprecated. 
 TRowResult deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TRowResult that)
           
 Map<byte[],TCell> getColumns()
           
 int getColumnsSize()
           
 Object getFieldValue(int fieldId)
           
 Object getFieldValue(TRowResult._Fields field)
           
 byte[] getRow()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(TRowResult._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetColumns()
          Returns true if field columns is set (has been asigned a value) and false otherwise
 boolean isSetRow()
          Returns true if field row is set (has been asigned a value) and false otherwise
 void putToColumns(byte[] key, TCell val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TRowResult setColumns(Map<byte[],TCell> columns)
           
 void setColumnsIsSet(boolean value)
           
 void setFieldValue(int fieldID, Object value)
           
 void setFieldValue(TRowResult._Fields field, Object value)
           
 TRowResult setRow(byte[] row)
           
 void setRowIsSet(boolean value)
           
 String toString()
           
 void unsetColumns()
           
 void unsetRow()
           
 void validate()
           
 void write(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

row

public byte[] row

columns

public Map<byte[],TCell> columns

metaDataMap

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

TRowResult

public TRowResult()

TRowResult

public TRowResult(byte[] row,
                  Map<byte[],TCell> columns)

TRowResult

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

Method Detail

deepCopy

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

clone

@Deprecated
public TRowResult clone()
Deprecated. 

Overrides:
clone in class Object

getRow

public byte[] getRow()

setRow

public TRowResult setRow(byte[] row)

unsetRow

public void unsetRow()

isSetRow

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


setRowIsSet

public void setRowIsSet(boolean value)

getColumnsSize

public int getColumnsSize()

putToColumns

public void putToColumns(byte[] key,
                         TCell val)

getColumns

public Map<byte[],TCell> getColumns()

setColumns

public TRowResult setColumns(Map<byte[],TCell> columns)

unsetColumns

public void unsetColumns()

isSetColumns

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


setColumnsIsSet

public void setColumnsIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

public Object getFieldValue(int fieldId)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TRowResult._Fields>

isSet

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

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

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<TRowResult._Fields>

equals

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

equals

public boolean equals(TRowResult that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TRowResult._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<TRowResult._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 © 2011 The Apache Software Foundation. All Rights Reserved.