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 if this Increment should be written to the write-ahead Log (WAL) or not. It defaults to true.

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
 List<TColumnIncrement> columns
           
static Map<TIncrement._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 boolean writeToWal
           
 
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)
           
 List<TColumnIncrement> getColumns()
           
 Iterator<TColumnIncrement> getColumnsIterator()
           
 int getColumnsSize()
           
 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 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 isSetWriteToWal()
          Returns true if field writeToWal is set (has been assigned a value) and false otherwise
 boolean isWriteToWal()
           
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TIncrement setColumns(List<TColumnIncrement> columns)
           
 void setColumnsIsSet(boolean value)
           
 void setFieldValue(TIncrement._Fields field, Object value)
           
 TIncrement setRow(byte[] row)
           
 TIncrement setRow(ByteBuffer row)
           
 void setRowIsSet(boolean value)
           
 TIncrement setWriteToWal(boolean writeToWal)
           
 void setWriteToWalIsSet(boolean value)
           
 String toString()
           
 void unsetColumns()
           
 void unsetRow()
           
 void unsetWriteToWal()
           
 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

writeToWal

public boolean writeToWal

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)

isWriteToWal

public boolean isWriteToWal()

setWriteToWal

public TIncrement setWriteToWal(boolean writeToWal)

unsetWriteToWal

public void unsetWriteToWal()

isSetWriteToWal

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


setWriteToWalIsSet

public void setWriteToWalIsSet(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 © 2014 The Apache Software Foundation. All Rights Reserved.