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
  • Constructor Details

    • 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 Details

    • 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
    • setReplicationSources

      @Deprecated public void setReplicationSources(Set<String> sources)
      Deprecated.
      Description copied from class: Mutation
      Set the replication peers which this Mutation originated from
      Overrides:
      setReplicationSources in class Mutation
      Parameters:
      sources - Set of peer names which have processed this update