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

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

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

See Also:
Serialized Form

Nested Class Summary
static class TAppend._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 Map<ByteBuffer,ByteBuffer> attributes
           
 TCellVisibility cellVisibility
           
 List<TColumnValue> columns
           
 TDurability durability
           
static Map<TAppend._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 
Constructor Summary
TAppend()
           
TAppend(ByteBuffer row, List<TColumnValue> columns)
           
TAppend(TAppend other)
          Performs a deep copy on other.
 
Method Summary
 void addToColumns(TColumnValue elem)
           
 ByteBuffer bufferForRow()
           
 void clear()
           
 int compareTo(TAppend other)
           
 TAppend deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TAppend that)
           
 TAppend._Fields fieldForId(int fieldId)
           
 Map<ByteBuffer,ByteBuffer> getAttributes()
           
 int getAttributesSize()
           
 TCellVisibility getCellVisibility()
           
 List<TColumnValue> getColumns()
           
 Iterator<TColumnValue> getColumnsIterator()
           
 int getColumnsSize()
           
 TDurability getDurability()
           
 Object getFieldValue(TAppend._Fields field)
           
 byte[] getRow()
           
 int hashCode()
           
 boolean isSet(TAppend._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 isSetCellVisibility()
          Returns true if field cellVisibility 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 isSetDurability()
          Returns true if field durability 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 putToAttributes(ByteBuffer key, ByteBuffer val)
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TAppend setAttributes(Map<ByteBuffer,ByteBuffer> attributes)
           
 void setAttributesIsSet(boolean value)
           
 TAppend setCellVisibility(TCellVisibility cellVisibility)
           
 void setCellVisibilityIsSet(boolean value)
           
 TAppend setColumns(List<TColumnValue> columns)
           
 void setColumnsIsSet(boolean value)
           
 TAppend setDurability(TDurability durability)
           
 void setDurabilityIsSet(boolean value)
           
 void setFieldValue(TAppend._Fields field, Object value)
           
 TAppend setRow(byte[] row)
           
 TAppend setRow(ByteBuffer row)
           
 void setRowIsSet(boolean value)
           
 String toString()
           
 void unsetAttributes()
           
 void unsetCellVisibility()
           
 void unsetColumns()
           
 void unsetDurability()
           
 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

columns

public List<TColumnValue> columns

attributes

public Map<ByteBuffer,ByteBuffer> attributes

durability

public TDurability durability
See Also:
TDurability

cellVisibility

public TCellVisibility cellVisibility

metaDataMap

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

TAppend

public TAppend()

TAppend

public TAppend(ByteBuffer row,
               List<TColumnValue> columns)

TAppend

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

Method Detail

deepCopy

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

clear

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

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public TAppend setRow(byte[] row)

setRow

public TAppend 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<TColumnValue> getColumnsIterator()

addToColumns

public void addToColumns(TColumnValue elem)

getColumns

public List<TColumnValue> getColumns()

setColumns

public TAppend setColumns(List<TColumnValue> 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)

getAttributesSize

public int getAttributesSize()

putToAttributes

public void putToAttributes(ByteBuffer key,
                            ByteBuffer val)

getAttributes

public Map<ByteBuffer,ByteBuffer> getAttributes()

setAttributes

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

getDurability

public TDurability getDurability()
See Also:
TDurability

setDurability

public TAppend setDurability(TDurability durability)
See Also:
TDurability

unsetDurability

public void unsetDurability()

isSetDurability

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


setDurabilityIsSet

public void setDurabilityIsSet(boolean value)

getCellVisibility

public TCellVisibility getCellVisibility()

setCellVisibility

public TAppend setCellVisibility(TCellVisibility cellVisibility)

unsetCellVisibility

public void unsetCellVisibility()

isSetCellVisibility

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


setCellVisibilityIsSet

public void setCellVisibilityIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(TAppend that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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