org.apache.hadoop.hbase.thrift2.generated
Class TMutation

java.lang.Object
  extended by org.apache.thrift.TUnion<TMutation,TMutation._Fields>
      extended by 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.
 
Nested classes/interfaces inherited from class org.apache.thrift.TUnion
org.apache.thrift.TUnion.TUnionStandardScheme, org.apache.thrift.TUnion.TUnionTupleScheme
 
Field Summary
static Map<TMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 
Fields inherited from class org.apache.thrift.TUnion
setField_, value_
 
Constructor Summary
TMutation()
           
TMutation(TMutation._Fields setField, Object value)
           
TMutation(TMutation other)
           
 
Method Summary
protected  void checkType(TMutation._Fields setField, Object value)
           
 int compareTo(TMutation other)
           
 TMutation deepCopy()
           
static TMutation deleteSingle(TDelete value)
           
protected  TMutation._Fields enumForId(short id)
           
 boolean equals(Object other)
           
 boolean equals(TMutation other)
           
 TMutation._Fields fieldForId(int fieldId)
           
 TDelete getDeleteSingle()
           
protected  org.apache.thrift.protocol.TField getFieldDesc(TMutation._Fields setField)
           
 TPut getPut()
           
protected  org.apache.thrift.protocol.TStruct getStructDesc()
           
 int hashCode()
          If you'd like this to perform more respectably, use the hashcode generator option.
 boolean isSetDeleteSingle()
           
 boolean isSetPut()
           
static TMutation put(TPut value)
           
 void setDeleteSingle(TDelete value)
           
 void setPut(TPut value)
           
protected  Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TField field)
           
protected  void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot)
           
protected  Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot, short fieldID)
           
protected  void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot)
           
 
Methods inherited from class org.apache.thrift.TUnion
clear, getFieldValue, getFieldValue, getFieldValue, getSetField, isSet, isSet, isSet, read, setFieldValue, setFieldValue, toString, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

metaDataMap

public static final Map<TMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
Constructor Detail

TMutation

public TMutation()

TMutation

public TMutation(TMutation._Fields setField,
                 Object value)

TMutation

public TMutation(TMutation other)
Method Detail

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.