Cloud Spanner V1 Client - Class CommitStats (1.64.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class CommitStats.

Additional statistics about a commit.

Generated from protobuf message google.spanner.v1.CommitResponse.CommitStats

Namespace

Google \ Cloud \ Spanner \ V1 \ CommitResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ mutation_count int|string

The total number of mutations for the transaction. Knowing the mutation_count value can help you maximize the number of mutations in a transaction and minimize the number of API round trips. You can also monitor this value to prevent transactions from exceeding the system limit. If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.

getMutationCount

The total number of mutations for the transaction. Knowing the mutation_count value can help you maximize the number of mutations in a transaction and minimize the number of API round trips. You can also monitor this value to prevent transactions from exceeding the system limit.

If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.

Returns
TypeDescription
int|string

setMutationCount

The total number of mutations for the transaction. Knowing the mutation_count value can help you maximize the number of mutations in a transaction and minimize the number of API round trips. You can also monitor this value to prevent transactions from exceeding the system limit.

If the number of mutations exceeds the limit, the server returns INVALID_ARGUMENT.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this