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

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

public class TMutation
extends java.lang.Object
implements org.apache.thrift.TBase<TMutation,TMutation._Fields>, java.io.Serializable, java.lang.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
 byte[] data
           
 int entries
           
static java.util.Map<TMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 byte[] row
           
 java.util.List<byte[]> values
           
 
Constructor Summary
TMutation()
           
TMutation(byte[] row, byte[] data, java.util.List<byte[]> values, int entries)
           
TMutation(TMutation other)
          Performs a deep copy on other.
 
Method Summary
 void addToValues(byte[] elem)
           
 TMutation clone()
          Deprecated. 
 int compareTo(TMutation other)
           
 TMutation deepCopy()
           
 boolean equals(java.lang.Object that)
           
 boolean equals(TMutation that)
           
 byte[] getData()
           
 int getEntries()
           
 java.lang.Object getFieldValue(int fieldId)
           
 java.lang.Object getFieldValue(TMutation._Fields field)
           
 byte[] getRow()
           
 java.util.List<byte[]> getValues()
           
 java.util.Iterator<byte[]> getValuesIterator()
           
 int getValuesSize()
           
 int hashCode()
           
 boolean isSet(int fieldID)
           
 boolean isSet(TMutation._Fields field)
          Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise
 boolean isSetData()
          Returns true if field data is set (has been asigned a value) and false otherwise
 boolean isSetEntries()
          Returns true if field entries is set (has been asigned a value) and false otherwise
 boolean isSetRow()
          Returns true if field row is set (has been asigned a value) and false otherwise
 boolean isSetValues()
          Returns true if field values is set (has been asigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TMutation setData(byte[] data)
           
 void setDataIsSet(boolean value)
           
 TMutation setEntries(int entries)
           
 void setEntriesIsSet(boolean value)
           
 void setFieldValue(int fieldID, java.lang.Object value)
           
 void setFieldValue(TMutation._Fields field, java.lang.Object value)
           
 TMutation setRow(byte[] row)
           
 void setRowIsSet(boolean value)
           
 TMutation setValues(java.util.List<byte[]> values)
           
 void setValuesIsSet(boolean value)
           
 java.lang.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
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

row

public byte[] row

data

public byte[] data

values

public java.util.List<byte[]> values

entries

public int entries

metaDataMap

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

TMutation

public TMutation()

TMutation

public TMutation(byte[] row,
                 byte[] data,
                 java.util.List<byte[]> 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>

clone

@Deprecated
public TMutation clone()
Deprecated. 

Overrides:
clone in class java.lang.Object

getRow

public byte[] getRow()

setRow

public TMutation setRow(byte[] row)

unsetRow

public void unsetRow()

isSetRow

public boolean isSetRow()
Returns true if field row is set (has been asigned a value) and false otherwise


setRowIsSet

public void setRowIsSet(boolean value)

getData

public byte[] getData()

setData

public TMutation setData(byte[] data)

unsetData

public void unsetData()

isSetData

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


setDataIsSet

public void setDataIsSet(boolean value)

getValuesSize

public int getValuesSize()

getValuesIterator

public java.util.Iterator<byte[]> getValuesIterator()

addToValues

public void addToValues(byte[] elem)

getValues

public java.util.List<byte[]> getValues()

setValues

public TMutation setValues(java.util.List<byte[]> values)

unsetValues

public void unsetValues()

isSetValues

public boolean isSetValues()
Returns true if field values is set (has been asigned 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 asigned a value) and false otherwise


setEntriesIsSet

public void setEntriesIsSet(boolean value)

setFieldValue

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

setFieldValue

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

getFieldValue

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

getFieldValue

public java.lang.Object getFieldValue(int fieldId)
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 asigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>

isSet

public boolean isSet(int fieldID)
Specified by:
isSet in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(TMutation that)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

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

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 java.lang.String toString()
Overrides:
toString in class java.lang.Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.