|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.accumulo.core.data.thrift.TMutation
public class TMutation
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 |
---|
public ByteBuffer row
public ByteBuffer data
public List<ByteBuffer> values
public int entries
public static final Map<TMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public TMutation()
public TMutation(ByteBuffer row, ByteBuffer data, List<ByteBuffer> values, int entries)
public TMutation(TMutation other)
Method Detail |
---|
public TMutation deepCopy()
deepCopy
in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>
public byte[] getRow()
public ByteBuffer bufferForRow()
public TMutation setRow(byte[] row)
public TMutation setRow(ByteBuffer row)
public void unsetRow()
public boolean isSetRow()
public void setRowIsSet(boolean value)
public byte[] getData()
public ByteBuffer bufferForData()
public TMutation setData(byte[] data)
public TMutation setData(ByteBuffer data)
public void unsetData()
public boolean isSetData()
public void setDataIsSet(boolean value)
public int getValuesSize()
public Iterator<ByteBuffer> getValuesIterator()
public void addToValues(ByteBuffer elem)
public List<ByteBuffer> getValues()
public TMutation setValues(List<ByteBuffer> values)
public void unsetValues()
public boolean isSetValues()
public void setValuesIsSet(boolean value)
public int getEntries()
public TMutation setEntries(int entries)
public void unsetEntries()
public boolean isSetEntries()
public void setEntriesIsSet(boolean value)
public void setFieldValue(TMutation._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>
public Object getFieldValue(TMutation._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>
public boolean isSet(TMutation._Fields field)
isSet
in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(TMutation that)
public int hashCode()
hashCode
in class Object
public int compareTo(TMutation other)
compareTo
in interface Comparable<TMutation>
public TMutation._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>
org.apache.thrift.TException
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
write
in interface org.apache.thrift.TBase<TMutation,TMutation._Fields>
org.apache.thrift.TException
public String toString()
toString
in class Object
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |