Class TMutation
- java.lang.Object
-
- org.apache.accumulo.core.dataImpl.thrift.TMutation
-
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TMutation>,org.apache.thrift.TBase<TMutation,TMutation._Fields>,org.apache.thrift.TSerializable
public class TMutation extends Object implements org.apache.thrift.TBase<TMutation,TMutation._Fields>, Serializable, Cloneable, Comparable<TMutation>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTMutation._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description ByteBufferdataintentriesstatic Map<TMutation._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapByteBufferrowList<String>sourcesList<ByteBuffer>values
-
Constructor Summary
Constructors Constructor Description TMutation()TMutation(ByteBuffer row, ByteBuffer data, List<ByteBuffer> values, int entries)TMutation(TMutation other)Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToSources(String elem)voidaddToValues(ByteBuffer elem)ByteBufferbufferForData()ByteBufferbufferForRow()voidclear()intcompareTo(TMutation other)TMutationdeepCopy()booleanequals(Object that)booleanequals(TMutation that)TMutation._FieldsfieldForId(int fieldId)byte[]getData()intgetEntries()ObjectgetFieldValue(TMutation._Fields field)byte[]getRow()List<String>getSources()Iterator<String>getSourcesIterator()intgetSourcesSize()List<ByteBuffer>getValues()Iterator<ByteBuffer>getValuesIterator()intgetValuesSize()inthashCode()booleanisSet(TMutation._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetData()Returns true if field data is set (has been assigned a value) and false otherwisebooleanisSetEntries()Returns true if field entries is set (has been assigned a value) and false otherwisebooleanisSetRow()Returns true if field row is set (has been assigned a value) and false otherwisebooleanisSetSources()Returns true if field sources is set (has been assigned a value) and false otherwisebooleanisSetValues()Returns true if field values is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)TMutationsetData(byte[] data)TMutationsetData(ByteBuffer data)voidsetDataIsSet(boolean value)TMutationsetEntries(int entries)voidsetEntriesIsSet(boolean value)voidsetFieldValue(TMutation._Fields field, Object value)TMutationsetRow(byte[] row)TMutationsetRow(ByteBuffer row)voidsetRowIsSet(boolean value)TMutationsetSources(List<String> sources)voidsetSourcesIsSet(boolean value)TMutationsetValues(List<ByteBuffer> values)voidsetValuesIsSet(boolean value)StringtoString()voidunsetData()voidunsetEntries()voidunsetRow()voidunsetSources()voidunsetValues()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
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:
deepCopyin interfaceorg.apache.thrift.TBase<TMutation,TMutation._Fields>
-
clear
public void clear()
- Specified by:
clearin interfaceorg.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)
-
getSourcesSize
public int getSourcesSize()
-
addToSources
public void addToSources(String elem)
-
unsetSources
public void unsetSources()
-
isSetSources
public boolean isSetSources()
Returns true if field sources is set (has been assigned a value) and false otherwise
-
setSourcesIsSet
public void setSourcesIsSet(boolean value)
-
setFieldValue
public void setFieldValue(TMutation._Fields field, Object value)
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<TMutation,TMutation._Fields>
-
getFieldValue
public Object getFieldValue(TMutation._Fields field)
- Specified by:
getFieldValuein interfaceorg.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:
isSetin interfaceorg.apache.thrift.TBase<TMutation,TMutation._Fields>
-
equals
public boolean equals(TMutation that)
-
compareTo
public int compareTo(TMutation other)
- Specified by:
compareToin interfaceComparable<TMutation>
-
fieldForId
public TMutation._Fields fieldForId(int fieldId)
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<TMutation,TMutation._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException- Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException- Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-
-