Cloud Spanner V1 Client - Class Partition (1.81.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
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$this