Package org.apache.accumulo.core.data
Class ConditionalMutation
- java.lang.Object
-
- org.apache.accumulo.core.data.Mutation
-
- 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
Constructors Constructor Description ConditionalMutation(byte[] row, int start, int length, Condition... conditions)
ConditionalMutation(byte[] row, Condition... conditions)
ConditionalMutation(CharSequence row, Condition... conditions)
ConditionalMutation(ByteSequence row, Condition... conditions)
ConditionalMutation(ConditionalMutation cm)
ConditionalMutation(org.apache.hadoop.io.Text row, Condition... conditions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCondition(Condition condition)
boolean
equals(Object o)
List<Condition>
getConditions()
int
hashCode()
void
setReplicationSources(Set<String> sources)
Set the replication peers which this Mutation originated from-
Methods inherited from class org.apache.accumulo.core.data.Mutation
addReplicationSource, droppingOldTimestamp, equals, estimatedMemoryUsed, getReplicationSources, 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
-
-
-
-
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)
-
setReplicationSources
public void setReplicationSources(Set<String> sources)
Description copied from class:Mutation
Set the replication peers which this Mutation originated from- Overrides:
setReplicationSources
in classMutation
- Parameters:
sources
- Set of peer names which have processed this update
-
-