Class TMutation
- java.lang.Object
-
- 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, Comparable<TMutation>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TMutation._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description ByteBuffer
data
int
entries
static Map<TMutation._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
ByteBuffer
row
List<String>
sources
List<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 void
addToSources(String elem)
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<String>
getSources()
Iterator<String>
getSourcesIterator()
int
getSourcesSize()
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 otherwiseboolean
isSetData()
Returns true if field data is set (has been assigned a value) and false otherwiseboolean
isSetEntries()
Returns true if field entries is set (has been assigned a value) and false otherwiseboolean
isSetRow()
Returns true if field row is set (has been assigned a value) and false otherwiseboolean
isSetSources()
Returns true if field sources is set (has been assigned a value) and false otherwiseboolean
isSetValues()
Returns true if field values is set (has been assigned a value) and false otherwisevoid
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
setSources(List<String> sources)
void
setSourcesIsSet(boolean value)
TMutation
setValues(List<ByteBuffer> values)
void
setValuesIsSet(boolean value)
String
toString()
void
unsetData()
void
unsetEntries()
void
unsetRow()
void
unsetSources()
void
unsetValues()
void
validate()
void
write(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:
deepCopy
in interfaceorg.apache.thrift.TBase<TMutation,TMutation._Fields>
-
clear
public void clear()
- Specified by:
clear
in 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:
setFieldValue
in interfaceorg.apache.thrift.TBase<TMutation,TMutation._Fields>
-
getFieldValue
public Object getFieldValue(TMutation._Fields field)
- Specified by:
getFieldValue
in 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:
isSet
in interfaceorg.apache.thrift.TBase<TMutation,TMutation._Fields>
-
equals
public boolean equals(TMutation that)
-
compareTo
public int compareTo(TMutation other)
- Specified by:
compareTo
in interfaceComparable<TMutation>
-
fieldForId
public TMutation._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.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 interfaceorg.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 interfaceorg.apache.thrift.TBase<TMutation,TMutation._Fields>
- Throws:
org.apache.thrift.TException
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-