org.apache.accumulo.core.data
Class ConditionalMutation

java.lang.Object
  extended by org.apache.accumulo.core.data.Mutation
      extended by org.apache.accumulo.core.data.ConditionalMutation
All Implemented Interfaces:
org.apache.hadoop.io.Writable

public class ConditionalMutation
extends Mutation

A Mutation that contains a list of conditions that must all be met before the mutation is applied.

Since:
1.6.0

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.accumulo.core.data.Mutation
Mutation.SERIALIZED_FORMAT
 
Constructor Summary
ConditionalMutation(byte[] row, Condition... conditions)
           
ConditionalMutation(byte[] row, int start, int length, Condition... conditions)
           
ConditionalMutation(ByteSequence row, Condition... conditions)
           
ConditionalMutation(CharSequence row, Condition... conditions)
           
ConditionalMutation(ConditionalMutation cm)
           
ConditionalMutation(org.apache.hadoop.io.Text row, Condition... conditions)
           
 
Method Summary
 void addCondition(Condition condition)
           
 boolean equals(Object o)
           
 List<Condition> getConditions()
           
 int hashCode()
           
 
Methods inherited from class org.apache.accumulo.core.data.Mutation
droppingOldTimestamp, equals, estimatedMemoryUsed, getRow, getSerializedFormat, getUpdates, newColumnUpdate, numBytes, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, putDelete, readFields, size, toThrift, write
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConditionalMutation

public ConditionalMutation(byte[] row,
                           Condition... conditions)

ConditionalMutation

public ConditionalMutation(byte[] row,
                           int start,
                           int length,
                           Condition... conditions)

ConditionalMutation

public ConditionalMutation(org.apache.hadoop.io.Text row,
                           Condition... conditions)

ConditionalMutation

public ConditionalMutation(CharSequence row,
                           Condition... conditions)

ConditionalMutation

public ConditionalMutation(ByteSequence row,
                           Condition... conditions)

ConditionalMutation

public ConditionalMutation(ConditionalMutation cm)
Method Detail

addCondition

public void addCondition(Condition condition)

getConditions

public List<Condition> getConditions()

equals

public boolean equals(Object o)
Overrides:
equals in class Mutation

hashCode

public int hashCode()
Overrides:
hashCode in class Mutation


Copyright © 2015 Apache Accumulo Project. All rights reserved.