@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2016-05-27") public class Mutation extends Object implements org.apache.thrift.TBase<Mutation,Mutation._Fields>, Serializable, Cloneable, Comparable<Mutation>
Modifier and Type | Class and Description |
---|---|
static class |
Mutation._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
|
Modifier and Type | Field and Description |
---|---|
ByteBuffer |
column |
boolean |
isDelete |
static Map<Mutation._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap |
ByteBuffer |
value |
boolean |
writeToWAL |
Constructor and Description |
---|
Mutation() |
Mutation(boolean isDelete,
ByteBuffer column,
ByteBuffer value,
boolean writeToWAL) |
Mutation(Mutation other)
Performs a deep copy on other.
|
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
bufferForColumn() |
ByteBuffer |
bufferForValue() |
void |
clear() |
int |
compareTo(Mutation other) |
Mutation |
deepCopy() |
boolean |
equals(Mutation that) |
boolean |
equals(Object that) |
Mutation._Fields |
fieldForId(int fieldId) |
byte[] |
getColumn() |
Object |
getFieldValue(Mutation._Fields field) |
byte[] |
getValue() |
int |
hashCode() |
boolean |
isIsDelete() |
boolean |
isSet(Mutation._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
|
boolean |
isSetColumn()
Returns true if field column is set (has been assigned a value) and false otherwise
|
boolean |
isSetIsDelete()
Returns true if field isDelete is set (has been assigned a value) and false otherwise
|
boolean |
isSetValue()
Returns true if field value is set (has been assigned a value) and false otherwise
|
boolean |
isSetWriteToWAL()
Returns true if field writeToWAL is set (has been assigned a value) and false otherwise
|
boolean |
isWriteToWAL() |
void |
read(org.apache.thrift.protocol.TProtocol iprot) |
Mutation |
setColumn(byte[] column) |
Mutation |
setColumn(ByteBuffer column) |
void |
setColumnIsSet(boolean value) |
void |
setFieldValue(Mutation._Fields field,
Object value) |
Mutation |
setIsDelete(boolean isDelete) |
void |
setIsDeleteIsSet(boolean value) |
Mutation |
setValue(byte[] value) |
Mutation |
setValue(ByteBuffer value) |
void |
setValueIsSet(boolean value) |
Mutation |
setWriteToWAL(boolean writeToWAL) |
void |
setWriteToWALIsSet(boolean value) |
String |
toString() |
void |
unsetColumn() |
void |
unsetIsDelete() |
void |
unsetValue() |
void |
unsetWriteToWAL() |
void |
validate() |
void |
write(org.apache.thrift.protocol.TProtocol oprot) |
public boolean isDelete
public ByteBuffer column
public ByteBuffer value
public boolean writeToWAL
public static final Map<Mutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
public Mutation()
public Mutation(boolean isDelete, ByteBuffer column, ByteBuffer value, boolean writeToWAL)
public Mutation(Mutation other)
public Mutation deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Mutation,Mutation._Fields>
public void clear()
clear
in interface org.apache.thrift.TBase<Mutation,Mutation._Fields>
public boolean isIsDelete()
public Mutation setIsDelete(boolean isDelete)
public void unsetIsDelete()
public boolean isSetIsDelete()
public void setIsDeleteIsSet(boolean value)
public byte[] getColumn()
public ByteBuffer bufferForColumn()
public Mutation setColumn(byte[] column)
public Mutation setColumn(ByteBuffer column)
public void unsetColumn()
public boolean isSetColumn()
public void setColumnIsSet(boolean value)
public byte[] getValue()
public ByteBuffer bufferForValue()
public Mutation setValue(byte[] value)
public Mutation setValue(ByteBuffer value)
public void unsetValue()
public boolean isSetValue()
public void setValueIsSet(boolean value)
public boolean isWriteToWAL()
public Mutation setWriteToWAL(boolean writeToWAL)
public void unsetWriteToWAL()
public boolean isSetWriteToWAL()
public void setWriteToWALIsSet(boolean value)
public void setFieldValue(Mutation._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Mutation,Mutation._Fields>
public Object getFieldValue(Mutation._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Mutation,Mutation._Fields>
public boolean isSet(Mutation._Fields field)
isSet
in interface org.apache.thrift.TBase<Mutation,Mutation._Fields>
public boolean equals(Mutation that)
public int compareTo(Mutation other)
compareTo
in interface Comparable<Mutation>
public Mutation._Fields fieldForId(int fieldId)
fieldForId
in interface org.apache.thrift.TBase<Mutation,Mutation._Fields>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<Mutation,Mutation._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<Mutation,Mutation._Fields>
org.apache.thrift.TException
public void validate() throws org.apache.thrift.TException
org.apache.thrift.TException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.