Class SafeIdempotentMutationPolicy (2.29.0-rc)

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
Type Description
std::unique_ptr< IdempotentMutationPolicy >

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

Return true if the mutation is idempotent.

Parameter
Name Description
google::bigtable::v2::Mutation const &
Returns
Type Description
bool

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

Return true if a conditional mutation is idempotent.

Parameter
Name Description
google::bigtable::v2::CheckAndMutateRowRequest const &
Returns
Type Description
bool