Class 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 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)
    • 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 class Mutation
        Parameters:
        sources - Set of peer names which have processed this update