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

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

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

Used to perform Increment operations for a single row. You can specify how this Increment should be written to the write-ahead Log (WAL) by changing the durability. If you don't provide durability, it defaults to column family's default setting for durability.

See Also:
Serialized Form

Nested Class Summary
static class TIncrement._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<TColumnIncrement> columns
           
 TDurability durability
           
static Map<TIncrement._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 
Constructor Summary
TIncrement()
           
TIncrement(ByteBuffer row, List<TColumnIncrement> columns)
           
TIncrement(TIncrement other)
          Performs a deep copy on other.
 
Method Summary
 void addToColumns(TColumnIncrement elem)
           
 ByteBuffer bufferForRow()
           
 void clear()
           
 int compareTo(TIncrement other)
           
 TIncrement deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TIncrement that)
           
 TIncrement._Fields fieldForId(int fieldId)
           
 Map<ByteBuffer,ByteBuffer> getAttributes()
           
 int getAttributesSize()
           
 TCellVisibility getCellVisibility()
           
 List<TColumnIncrement> getColumns()
           
 Iterator<TColumnIncrement> getColumnsIterator()
           
 int getColumnsSize()
           
 TDurability getDurability()
           
 Object getFieldValue(TIncrement._Fields field)
           
 byte[] getRow()
           
 int hashCode()
           
 boolean isSet(TIncrement._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)
           
 TIncrement setAttributes(Map<ByteBuffer,ByteBuffer> attributes)
           
 void setAttributesIsSet(boolean value)
           
 TIncrement setCellVisibility(TCellVisibility cellVisibility)
           
 void setCellVisibilityIsSet(boolean value)
           
 TIncrement setColumns(List<TColumnIncrement> columns)
           
 void setColumnsIsSet(boolean value)
           
 TIncrement setDurability(TDurability durability)
           
 void setDurabilityIsSet(boolean value)
           
 void setFieldValue(TIncrement._Fields field, Object value)
           
 TIncrement setRow(byte[] row)
           
 TIncrement 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<TColumnIncrement> columns

attributes

public Map<ByteBuffer,ByteBuffer> attributes

durability

public TDurability durability
See Also:
TDurability

cellVisibility

public TCellVisibility cellVisibility

metaDataMap

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

TIncrement

public TIncrement()

TIncrement

public TIncrement(ByteBuffer row,
                  List<TColumnIncrement> columns)

TIncrement

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

Method Detail

deepCopy

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

clear

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

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public TIncrement setRow(byte[] row)

setRow

public TIncrement 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<TColumnIncrement> getColumnsIterator()

addToColumns

public void addToColumns(TColumnIncrement elem)

getColumns

public List<TColumnIncrement> getColumns()

setColumns

public TIncrement setColumns(List<TColumnIncrement> 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 TIncrement 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 TIncrement 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 TIncrement 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(TIncrement._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TIncrement,TIncrement._Fields>

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(TIncrement that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

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