org.apache.hadoop.hbase.thrift2.generated
Class TMutation
java.lang.Object
org.apache.thrift.TUnion<TMutation,TMutation._Fields>
org.apache.hadoop.hbase.thrift2.generated.TMutation
- All Implemented Interfaces:
- Serializable, Comparable<TMutation>, org.apache.thrift.TBase<TMutation,TMutation._Fields>
public class TMutation
- extends org.apache.thrift.TUnion<TMutation,TMutation._Fields>
Atomic mutation for the specified row. It can be either Put or Delete.
- See Also:
- Serialized Form
|
Nested Class Summary |
static class |
TMutation._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them. |
| Fields inherited from class org.apache.thrift.TUnion |
setField_, value_ |
| Methods inherited from class org.apache.thrift.TUnion |
clear, getFieldValue, getFieldValue, getFieldValue, getSetField, isSet, isSet, isSet, read, setFieldValue, setFieldValue, toString, write |
metaDataMap
public static final Map<TMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
TMutation
public TMutation()
TMutation
public TMutation(TMutation._Fields setField,
Object value)
TMutation
public TMutation(TMutation other)
deepCopy
public TMutation deepCopy()
put
public static TMutation put(TPut value)
deleteSingle
public static TMutation deleteSingle(TDelete value)
checkType
protected void checkType(TMutation._Fields setField,
Object value)
throws ClassCastException
- Specified by:
checkType in class org.apache.thrift.TUnion<TMutation,TMutation._Fields>
- Throws:
ClassCastException
standardSchemeReadValue
protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot,
org.apache.thrift.protocol.TField field)
throws org.apache.thrift.TException
- Specified by:
standardSchemeReadValue in class org.apache.thrift.TUnion<TMutation,TMutation._Fields>
- Throws:
org.apache.thrift.TException
standardSchemeWriteValue
protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
- Specified by:
standardSchemeWriteValue in class org.apache.thrift.TUnion<TMutation,TMutation._Fields>
- Throws:
org.apache.thrift.TException
tupleSchemeReadValue
protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot,
short fieldID)
throws org.apache.thrift.TException
- Specified by:
tupleSchemeReadValue in class org.apache.thrift.TUnion<TMutation,TMutation._Fields>
- Throws:
org.apache.thrift.TException
tupleSchemeWriteValue
protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot)
throws org.apache.thrift.TException
- Specified by:
tupleSchemeWriteValue in class org.apache.thrift.TUnion<TMutation,TMutation._Fields>
- Throws:
org.apache.thrift.TException
getFieldDesc
protected org.apache.thrift.protocol.TField getFieldDesc(TMutation._Fields setField)
- Specified by:
getFieldDesc in class org.apache.thrift.TUnion<TMutation,TMutation._Fields>
getStructDesc
protected org.apache.thrift.protocol.TStruct getStructDesc()
- Specified by:
getStructDesc in class org.apache.thrift.TUnion<TMutation,TMutation._Fields>
enumForId
protected TMutation._Fields enumForId(short id)
- Specified by:
enumForId in class org.apache.thrift.TUnion<TMutation,TMutation._Fields>
fieldForId
public TMutation._Fields fieldForId(int fieldId)
getPut
public TPut getPut()
setPut
public void setPut(TPut value)
getDeleteSingle
public TDelete getDeleteSingle()
setDeleteSingle
public void setDeleteSingle(TDelete value)
isSetPut
public boolean isSetPut()
isSetDeleteSingle
public boolean isSetDeleteSingle()
equals
public boolean equals(Object other)
- Overrides:
equals in class Object
equals
public boolean equals(TMutation other)
compareTo
public int compareTo(TMutation other)
hashCode
public int hashCode()
- If you'd like this to perform more respectably, use the hashcode generator option.
- Overrides:
hashCode in class Object
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.