Cloud Spanner V1 Client - Class Partition (1.54.2)

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

Information returned for each partition returned in a PartitionResponse.

Generated from protobuf message google.spanner.v1.Partition

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ partition_token string

This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

getPartitionToken

This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

Generated from protobuf field bytes partition_token = 1;

Returns
TypeDescription
string

setPartitionToken

This token can be passed to Read, StreamingRead, ExecuteSql, or ExecuteStreamingSql requests to restrict the results to those identified by this partition token.

Generated from protobuf field bytes partition_token = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this