Google Cloud Bigtable C++ Client 2.13.0
A C++ Client Library for Google Cloud Bigtable
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigtable::SafeIdempotentMutationPolicy Class Reference

Implements a policy that only accepts truly idempotent mutations. More...

#include <google/cloud/bigtable/idempotent_mutation_policy.h>

Public Member Functions

 SafeIdempotentMutationPolicy ()=default
 
std::unique_ptr< IdempotentMutationPolicyclone () const override
 Return a copy of the policy. More...
 
bool is_idempotent (google::bigtable::v2::Mutation const &) override
 Return true if the mutation is idempotent. More...
 
bool is_idempotent (google::bigtable::v2::CheckAndMutateRowRequest const &) override
 Return true if a conditional mutation is idempotent. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SafeIdempotentMutationPolicy()

google::cloud::bigtable::SafeIdempotentMutationPolicy::SafeIdempotentMutationPolicy ( )
default

Member Function Documentation

◆ clone()

std::unique_ptr< IdempotentMutationPolicy > google::cloud::bigtable::SafeIdempotentMutationPolicy::clone ( ) const
overridevirtual

Return a copy of the policy.

Implements google::cloud::bigtable::IdempotentMutationPolicy.

◆ is_idempotent() [1/2]

bool google::cloud::bigtable::SafeIdempotentMutationPolicy::is_idempotent ( google::bigtable::v2::CheckAndMutateRowRequest const &  )
overridevirtual

Return true if a conditional mutation is idempotent.

Implements google::cloud::bigtable::IdempotentMutationPolicy.

◆ is_idempotent() [2/2]

bool google::cloud::bigtable::SafeIdempotentMutationPolicy::is_idempotent ( google::bigtable::v2::Mutation const &  )
overridevirtual

Return true if the mutation is idempotent.

Implements google::cloud::bigtable::IdempotentMutationPolicy.