org.apache.accumulo.core.data.thrift
Class TConditionalMutation

java.lang.Object
  extended by org.apache.accumulo.core.data.thrift.TConditionalMutation
All Implemented Interfaces:
Serializable, Cloneable, Comparable<TConditionalMutation>, org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>

public class TConditionalMutation
extends Object
implements org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>, Serializable, Cloneable, Comparable<TConditionalMutation>

See Also:
Serialized Form

Nested Class Summary
static class TConditionalMutation._Fields
          The set of fields this struct contains, along with convenience methods for finding and manipulating them.
 
Field Summary
 List<TCondition> conditions
           
 long id
           
static Map<TConditionalMutation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
           
 TMutation mutation
           
 
Constructor Summary
TConditionalMutation()
           
TConditionalMutation(List<TCondition> conditions, TMutation mutation, long id)
           
TConditionalMutation(TConditionalMutation other)
          Performs a deep copy on other.
 
Method Summary
 void addToConditions(TCondition elem)
           
 void clear()
           
 int compareTo(TConditionalMutation other)
           
 TConditionalMutation deepCopy()
           
 boolean equals(Object that)
           
 boolean equals(TConditionalMutation that)
           
 TConditionalMutation._Fields fieldForId(int fieldId)
           
 List<TCondition> getConditions()
           
 Iterator<TCondition> getConditionsIterator()
           
 int getConditionsSize()
           
 Object getFieldValue(TConditionalMutation._Fields field)
           
 long getId()
           
 TMutation getMutation()
           
 int hashCode()
           
 boolean isSet(TConditionalMutation._Fields field)
          Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise
 boolean isSetConditions()
          Returns true if field conditions is set (has been assigned a value) and false otherwise
 boolean isSetId()
          Returns true if field id is set (has been assigned a value) and false otherwise
 boolean isSetMutation()
          Returns true if field mutation is set (has been assigned a value) and false otherwise
 void read(org.apache.thrift.protocol.TProtocol iprot)
           
 TConditionalMutation setConditions(List<TCondition> conditions)
           
 void setConditionsIsSet(boolean value)
           
 void setFieldValue(TConditionalMutation._Fields field, Object value)
           
 TConditionalMutation setId(long id)
           
 void setIdIsSet(boolean value)
           
 TConditionalMutation setMutation(TMutation mutation)
           
 void setMutationIsSet(boolean value)
           
 String toString()
           
 void unsetConditions()
           
 void unsetId()
           
 void unsetMutation()
           
 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

conditions

public List<TCondition> conditions

mutation

public TMutation mutation

id

public long id

metaDataMap

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

TConditionalMutation

public TConditionalMutation()

TConditionalMutation

public TConditionalMutation(List<TCondition> conditions,
                            TMutation mutation,
                            long id)

TConditionalMutation

public TConditionalMutation(TConditionalMutation other)
Performs a deep copy on other.

Method Detail

deepCopy

public TConditionalMutation deepCopy()
Specified by:
deepCopy in interface org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>

clear

public void clear()
Specified by:
clear in interface org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>

getConditionsSize

public int getConditionsSize()

getConditionsIterator

public Iterator<TCondition> getConditionsIterator()

addToConditions

public void addToConditions(TCondition elem)

getConditions

public List<TCondition> getConditions()

setConditions

public TConditionalMutation setConditions(List<TCondition> conditions)

unsetConditions

public void unsetConditions()

isSetConditions

public boolean isSetConditions()
Returns true if field conditions is set (has been assigned a value) and false otherwise


setConditionsIsSet

public void setConditionsIsSet(boolean value)

getMutation

public TMutation getMutation()

setMutation

public TConditionalMutation setMutation(TMutation mutation)

unsetMutation

public void unsetMutation()

isSetMutation

public boolean isSetMutation()
Returns true if field mutation is set (has been assigned a value) and false otherwise


setMutationIsSet

public void setMutationIsSet(boolean value)

getId

public long getId()

setId

public TConditionalMutation setId(long id)

unsetId

public void unsetId()

isSetId

public boolean isSetId()
Returns true if field id is set (has been assigned a value) and false otherwise


setIdIsSet

public void setIdIsSet(boolean value)

setFieldValue

public void setFieldValue(TConditionalMutation._Fields field,
                          Object value)
Specified by:
setFieldValue in interface org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>

getFieldValue

public Object getFieldValue(TConditionalMutation._Fields field)
Specified by:
getFieldValue in interface org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>

isSet

public boolean isSet(TConditionalMutation._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise

Specified by:
isSet in interface org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>

equals

public boolean equals(Object that)
Overrides:
equals in class Object

equals

public boolean equals(TConditionalMutation that)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

compareTo

public int compareTo(TConditionalMutation other)
Specified by:
compareTo in interface Comparable<TConditionalMutation>

fieldForId

public TConditionalMutation._Fields fieldForId(int fieldId)
Specified by:
fieldForId in interface org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>

read

public void read(org.apache.thrift.protocol.TProtocol iprot)
          throws org.apache.thrift.TException
Specified by:
read in interface org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>
Throws:
org.apache.thrift.TException

write

public void write(org.apache.thrift.protocol.TProtocol oprot)
           throws org.apache.thrift.TException
Specified by:
write in interface org.apache.thrift.TBase<TConditionalMutation,TConditionalMutation._Fields>
Throws:
org.apache.thrift.TException

toString

public String toString()
Overrides:
toString in class Object

validate

public void validate()
              throws org.apache.thrift.TException
Throws:
org.apache.thrift.TException


Copyright © 2015 Apache Accumulo Project. All rights reserved.