|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.thrift.generated.Mutation
public class Mutation
A Mutation object is used to either update or delete a column-value.
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 | |
---|---|
byte[] |
column
|
boolean |
isDelete
|
static Map<Mutation._Fields,org.apache.thrift.meta_data.FieldMetaData> |
metaDataMap
|
byte[] |
value
|
Constructor Summary | |
---|---|
Mutation()
|
|
Mutation(boolean isDelete,
byte[] column,
byte[] value)
|
|
Mutation(Mutation other)
Performs a deep copy on other. |
Method Summary | |
---|---|
Mutation |
clone()
Deprecated. |
int |
compareTo(Mutation other)
|
Mutation |
deepCopy()
|
boolean |
equals(Mutation that)
|
boolean |
equals(Object that)
|
byte[] |
getColumn()
|
Object |
getFieldValue(int fieldId)
|
Object |
getFieldValue(Mutation._Fields field)
|
byte[] |
getValue()
|
int |
hashCode()
|
boolean |
isIsDelete()
|
boolean |
isSet(int fieldID)
|
boolean |
isSet(Mutation._Fields field)
Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise |
boolean |
isSetColumn()
Returns true if field column is set (has been asigned a value) and false otherwise |
boolean |
isSetIsDelete()
Returns true if field isDelete is set (has been asigned a value) and false otherwise |
boolean |
isSetValue()
Returns true if field value is set (has been asigned a value) and false otherwise |
void |
read(org.apache.thrift.protocol.TProtocol iprot)
|
Mutation |
setColumn(byte[] column)
|
void |
setColumnIsSet(boolean value)
|
void |
setFieldValue(int fieldID,
Object value)
|
void |
setFieldValue(Mutation._Fields field,
Object value)
|
Mutation |
setIsDelete(boolean isDelete)
|
void |
setIsDeleteIsSet(boolean value)
|
Mutation |
setValue(byte[] value)
|
void |
setValueIsSet(boolean value)
|
String |
toString()
|
void |
unsetColumn()
|
void |
unsetIsDelete()
|
void |
unsetValue()
|
void |
validate()
|
void |
write(org.apache.thrift.protocol.TProtocol oprot)
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean isDelete
public byte[] column
public byte[] value
public static final Map<Mutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail |
---|
public Mutation()
public Mutation(boolean isDelete, byte[] column, byte[] value)
public Mutation(Mutation other)
Method Detail |
---|
public Mutation deepCopy()
deepCopy
in interface org.apache.thrift.TBase<Mutation._Fields>
@Deprecated public Mutation clone()
clone
in class Object
public boolean isIsDelete()
public Mutation setIsDelete(boolean isDelete)
public void unsetIsDelete()
public boolean isSetIsDelete()
public void setIsDeleteIsSet(boolean value)
public byte[] getColumn()
public Mutation setColumn(byte[] column)
public void unsetColumn()
public boolean isSetColumn()
public void setColumnIsSet(boolean value)
public byte[] getValue()
public Mutation setValue(byte[] value)
public void unsetValue()
public boolean isSetValue()
public void setValueIsSet(boolean value)
public void setFieldValue(Mutation._Fields field, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Mutation._Fields>
public void setFieldValue(int fieldID, Object value)
setFieldValue
in interface org.apache.thrift.TBase<Mutation._Fields>
public Object getFieldValue(Mutation._Fields field)
getFieldValue
in interface org.apache.thrift.TBase<Mutation._Fields>
public Object getFieldValue(int fieldId)
getFieldValue
in interface org.apache.thrift.TBase<Mutation._Fields>
public boolean isSet(Mutation._Fields field)
isSet
in interface org.apache.thrift.TBase<Mutation._Fields>
public boolean isSet(int fieldID)
isSet
in interface org.apache.thrift.TBase<Mutation._Fields>
public boolean equals(Object that)
equals
in class Object
public boolean equals(Mutation that)
public int hashCode()
hashCode
in class Object
public int compareTo(Mutation other)
compareTo
in interface Comparable<Mutation>
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
read
in interface org.apache.thrift.TBase<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._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 |