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, Comparable<TRowResult>, org.apache.thrift.TBase<TRowResult,TRowResult._Fields>

public class TRowResult
extends Object
implements org.apache.thrift.TBase<TRowResult,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<ByteBuffer,TCell> columns
           
static Map<TRowResult._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 List<TColumn> sortedColumns
           
 
Constructor Summary
TRowResult()
           
TRowResult(ByteBuffer row)
           
TRowResult(TRowResult other)
          Performs a deep copy on other.
 
Method Summary
 void addToSortedColumns(TColumn elem)
           
 ByteBuffer bufferForRow()
           
 void clear()
           
 int compareTo(TRowResult other)
           
 TRowResult deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TRowResult that)
           
 TRowResult._Fields fieldForId(int fieldId)
           
 Map<ByteBuffer,TCell> getColumns()
           
 int getColumnsSize()
           
 Object getFieldValue(TRowResult._Fields field)
           
 byte[] getRow()
           
 List<TColumn> getSortedColumns()
           
 Iterator<TColumn> getSortedColumnsIterator()
           
 int getSortedColumnsSize()
           
 int hashCode()
           
 boolean isSet(TRowResult._Fields field)
          Returns true if field corresponding to fieldID 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 isSetRow()
          Returns true if field row is set (has been assigned a value) and false otherwise
 boolean isSetSortedColumns()
          Returns true if field sortedColumns is set (has been assigned a value) and false otherwise
 void putToColumns(ByteBuffer key, TCell val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TRowResult setColumns(Map<ByteBuffer,TCell> columns)
           
 void setColumnsIsSet(boolean value)
           
 void setFieldValue(TRowResult._Fields field, Object value)
           
 TRowResult setRow(byte[] row)
           
 TRowResult setRow(ByteBuffer row)
           
 void setRowIsSet(boolean value)
           
 TRowResult setSortedColumns(List<TColumn> sortedColumns)
           
 void setSortedColumnsIsSet(boolean value)
           
 String toString()
           
 void unsetColumns()
           
 void unsetRow()
           
 void unsetSortedColumns()
           
 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 Map<ByteBuffer,TCell> columns

sortedColumns

public List<TColumn> sortedColumns

metaDataMap

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

TRowResult

public TRowResult()

TRowResult

public TRowResult(ByteBuffer row)

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,TRowResult._Fields>

clear

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

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public TRowResult setRow(byte[] row)

setRow

public TRowResult 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()

putToColumns

public void putToColumns(ByteBuffer key,
                         TCell val)

getColumns

public Map<ByteBuffer,TCell> getColumns()

setColumns

public TRowResult setColumns(Map<ByteBuffer,TCell> 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)

getSortedColumnsSize

public int getSortedColumnsSize()

getSortedColumnsIterator

public Iterator<TColumn> getSortedColumnsIterator()

addToSortedColumns

public void addToSortedColumns(TColumn elem)

getSortedColumns

public List<TColumn> getSortedColumns()

setSortedColumns

public TRowResult setSortedColumns(List<TColumn> sortedColumns)

unsetSortedColumns

public void unsetSortedColumns()

isSetSortedColumns

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


setSortedColumnsIsSet

public void setSortedColumnsIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

compareTo

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

fieldForId

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