@Generated(value="Autogenerated by Thrift Compiler (0.9.3)") public class TMutation extends Object implements org.apache.thrift.TBase<TMutation,TMutation._Fields>, Serializable, Cloneable, Comparable<TMutation>
Modifier and Type | Class and Description |
---|---|
static class |
TMutation._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and 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 and Description |
---|
TMutation() |
TMutation(ByteBuffer row,
ByteBuffer data,
List<ByteBuffer> values,
int entries) |
TMutation(TMutation other)
Performs a deep copy on other.
|
Modifier and Type | Method and 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 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 |
isSetSources()
Returns true if field sources 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 |
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) |
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
public TMutation()
public TMutation(ByteBuffer row, ByteBuffer data, List<ByteBuffer> values, int entries)
public TMutation(TMutation other)
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 int getSourcesSize()
public void addToSources(String elem)
public void unsetSources()
public boolean isSetSources()
public void setSourcesIsSet(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(TMutation that)
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 void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.