Cloud Spanner V1 Client - Class CommitStats (1.62.1)

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
Name
Description
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
Type
Description
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
Name
Description
var
int|string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: