/** * Adds changes to be atomically applied to the specified row if the condition yields at least one * cell when applied to the row. * * <p>Each {@code mutation} can specify multiple changes and the changes are accumulated each time * this method is called. Mutations are applied in order, meaning that earlier mutations can be * masked by later ones. Must contain at least one entry if {@link #otherwise(Mutation)} is empty, * and at most 100000. */ public ConditionalRowMutation then(@Nonnull Mutation mutation) { Preconditions.checkNotNull(mutation); builder.addAllTrueMutations(mutation.getMutations()); return this; }
/** * Adds changes to be atomically applied to the specified row if the condition yields at least one * cell when applied to the row. * * <p>Each {@code mutation} can specify multiple changes and the changes are accumulated each time * this method is called. Mutations are applied in order, meaning that earlier mutations can be * masked by later ones. Must contain at least one entry if {@link #otherwise(Mutation)} is empty, * and at most 100000. */ public ConditionalRowMutation then(@Nonnull Mutation mutation) { Preconditions.checkNotNull(mutation); builder.addAllTrueMutations(mutation.getMutations()); return this; }
.setRowKey(rowKey) .setPredicateFilter(predicateFilter) .addAllTrueMutations(trueMutations) .addAllFalseMutations(falseMutations) .build();
.setRowKey(rowKey) .setPredicateFilter(predicateFilter) .addAllTrueMutations(trueMutations) .addAllFalseMutations(falseMutations) .build();
.setRowKey(rowKey) .setPredicateFilter(predicateFilter) .addAllTrueMutations(trueMutations) .addAllFalseMutations(falseMutations) .build();
.setRowKey(rowKey) .setPredicateFilter(predicateFilter) .addAllTrueMutations(trueMutations) .addAllFalseMutations(falseMutations) .build();