org.apache.accumulo.core.data.thrift
Class TMutation

java.lang.Object
  extended by org.apache.accumulo.core.data.thrift.TMutation
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TMutation>, org.apache.thrift.TBase<TMutation,TMutation._Fields>

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

See Also:
Serialized Form

Nested Class Summary
static class TMutation._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 ByteBuffer data
           
 int entries
           
static Map<TMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 ByteBuffer row
           
 List<ByteBuffer> values
           
 
Constructor Summary
TMutation()
           
TMutation(ByteBuffer row, ByteBuffer data, List<ByteBuffer> values, int entries)
           
TMutation(TMutation other)
          Performs a deep copy on other.
 
Method Summary
 void addToValues(ByteBuffer elem)
           
 ByteBuffer bufferForData()
           
 ByteBuffer bufferForRow()
           
 void clear()
           
 int compareTo(TMutation other)
           
 TMutation deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TMutation that)
           
 TMutation._Fields fieldForId(int fieldId)
           
 byte[] getData()
           
 int getEntries()
           
 Object getFieldValue(TMutation._Fields field)
           
 byte[] getRow()
           
 List<ByteBuffer> getValues()
           
 Iterator<ByteBuffer> getValuesIterator()
           
 int getValuesSize()
           
 int hashCode()
           
 boolean isSet(TMutation._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetData()
          Returns true if field data is set (has been assigned a value) and false otherwise
 boolean isSetEntries()
          Returns true if field entries 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 isSetValues()
          Returns true if field values is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TMutation setData(byte[] data)
           
 TMutation setData(ByteBuffer data)
           
 void setDataIsSet(boolean value)
           
 TMutation setEntries(int entries)
           
 void setEntriesIsSet(boolean value)
           
 void setFieldValue(TMutation._Fields field, Object value)
           
 TMutation setRow(byte[] row)
           
 TMutation setRow(ByteBuffer row)
           
 void setRowIsSet(boolean value)
           
 TMutation setValues(List<ByteBuffer> values)
           
 void setValuesIsSet(boolean value)
           
 String toString()
           
 void unsetData()
           
 void unsetEntries()
           
 void unsetRow()
           
 void unsetValues()
           
 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

data

public ByteBuffer data

values

public List<ByteBuffer> values

entries

public int entries

metaDataMap

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

TMutation

public TMutation()

TMutation

public TMutation(ByteBuffer row,
                 ByteBuffer data,
                 List<ByteBuffer> values,
                 int entries)

TMutation

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

Method Detail

deepCopy

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

clear

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

getRow

public byte[] getRow()

bufferForRow

public ByteBuffer bufferForRow()

setRow

public TMutation setRow(byte[] row)

setRow

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

getData

public byte[] getData()

bufferForData

public ByteBuffer bufferForData()

setData

public TMutation setData(byte[] data)

setData

public TMutation setData(ByteBuffer data)

unsetData

public void unsetData()

isSetData

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


setDataIsSet

public void setDataIsSet(boolean value)

getValuesSize

public int getValuesSize()

getValuesIterator

public Iterator<ByteBuffer> getValuesIterator()

addToValues

public void addToValues(ByteBuffer elem)

getValues

public List<ByteBuffer> getValues()

setValues

public TMutation setValues(List<ByteBuffer> values)

unsetValues

public void unsetValues()

isSetValues

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


setValuesIsSet

public void setValuesIsSet(boolean value)

getEntries

public int getEntries()

setEntries

public TMutation setEntries(int entries)

unsetEntries

public void unsetEntries()

isSetEntries

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


setEntriesIsSet

public void setEntriesIsSet(boolean value)

setFieldValue

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

getFieldValue

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

isSet

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

equals

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

equals

public boolean equals(TMutation that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

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

fieldForId

public TMutation._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TMutation,TMutation._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<TMutation,TMutation._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<TMutation,TMutation._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 © 2013 Apache Accumulo Project. All Rights Reserved.