Class SafeIdempotentMutationPolicy (2.19.0)

Implements a policy that only accepts truly idempotent mutations.

This policy accepts only truly idempotent mutations, that is, it rejects mutations where the server sets the timestamp. Some applications may find this too restrictive and can set their own policies if they wish.

Constructors

SafeIdempotentMutationPolicy()

Functions

virtual clone() const

Return a copy of the policy.

Returns
TypeDescription
std::unique_ptr< IdempotentMutationPolicy >

virtual is_idempotent(google::bigtable::v2::Mutation const &)

Return true if the mutation is idempotent.

Parameter
NameDescription
google::bigtable::v2::Mutation const &
Returns
TypeDescription
bool

virtual is_idempotent(google::bigtable::v2::CheckAndMutateRowRequest const &)

Return true if a conditional mutation is idempotent.

Parameter
NameDescription
google::bigtable::v2::CheckAndMutateRowRequest const &
Returns
TypeDescription
bool