|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cassandra.thrift.Mutation
public class Mutation
A Mutation is either an insert, represented by filling column_or_supercolumn, or a deletion, represented by filling the deletion attribute.
Nested Class Summary | |
---|---|
static class |
Mutation._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
Field Summary | |
---|---|
ColumnOrSuperColumn |
column_or_supercolumn
|
Deletion |
deletion
|
static java.util.Map<Mutation._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
Constructor Summary | |
---|---|
Mutation()
|
|
Mutation(Mutation other)
Performs a deep copy on other. |
Method Summary | |
---|---|
void |
clear()
|
int |
compareTo(Mutation other)
|
Mutation |
deepCopy()
|
boolean |
equals(Mutation that)
|
boolean |
equals(java.lang.Object that)
|
Mutation._Fields |
fieldForId(int fieldId)
|
ColumnOrSuperColumn |
getColumn_or_supercolumn()
|
Deletion |
getDeletion()
|
java.lang.Object |
getFieldValue(Mutation._Fields field)
|
int |
hashCode()
|
boolean |
isSet(Mutation._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise |
boolean |
isSetColumn_or_supercolumn()
Returns true if field column_or_supercolumn is set (has been asigned a value) and false otherwise |
boolean |
isSetDeletion()
Returns true if field deletion is set (has been asigned a value) and false otherwise |
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
Mutation |
setColumn_or_supercolumn(ColumnOrSuperColumn column_or_supercolumn)
|
void |
setColumn_or_supercolumnIsSet(boolean value)
|
Mutation |
setDeletion(Deletion deletion)
|
void |
setDeletionIsSet(boolean value)
|
void |
setFieldValue(Mutation._Fields field,
java.lang.Object value)
|
java.lang.String |
toString()
|
void |
unsetColumn_or_supercolumn()
|
void |
unsetDeletion()
|
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 ColumnOrSuperColumn column_or_supercolumn
public Deletion deletion
public static final java.util.Map<Mutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public Mutation()
public Mutation(Mutation other)
Method Detail |
---|
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 ColumnOrSuperColumn getColumn_or_supercolumn()
public Mutation setColumn_or_supercolumn(ColumnOrSuperColumn column_or_supercolumn)
public void unsetColumn_or_supercolumn()
public boolean isSetColumn_or_supercolumn()
public void setColumn_or_supercolumnIsSet(boolean value)
public Deletion getDeletion()
public Mutation setDeletion(Deletion deletion)
public void unsetDeletion()
public boolean isSetDeletion()
public void setDeletionIsSet(boolean value)
public void setFieldValue(Mutation._Fields field, java.lang.Object value)
setFieldValue
in interface org.apache.thrift.TBase<Mutation,Mutation._Fields>
public java.lang.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(java.lang.Object that)
equals
in class java.lang.Object
public boolean equals(Mutation that)
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(Mutation other)
compareTo
in interface java.lang.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 java.lang.String toString()
toString
in class java.lang.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 |