Cloud Spanner V1 Client - Class Partition (1.67.0)

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

Namespace

Google \ Cloud \ Spanner \ V1

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.

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.

Parameter
NameDescription
var string
Returns
TypeDescription
$this