Reference documentation and code samples for the Cloud Spanner V1 Client class KeyRecipe.
A KeyRecipe
provides the metadata required to translate reads, mutations,
and queries into a byte array in "sortable string format" (ssformat)that can
be used with Range
s to route requests. Note that the client must
tolerate KeyRecipe
s that appear to be invalid, since the KeyRecipe
format may
change over time. Requests with invalid KeyRecipe
s should be routed to a
default server.
Generated from protobuf message google.spanner.v1.KeyRecipe
Namespace
Google \ Cloud \ Spanner \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ table_name
string
A table name, matching the name from the database schema.
↳ index_name
string
An index name, matching the name from the database schema.
↳ operation_uid
int|string
The UID of a query, matching the UID from RoutingHint
.
↳ part
getTableName
A table name, matching the name from the database schema.
string
hasTableName
setTableName
A table name, matching the name from the database schema.
var
string
$this
getIndexName
An index name, matching the name from the database schema.
string
hasIndexName
setIndexName
An index name, matching the name from the database schema.
var
string
$this
getOperationUid
The UID of a query, matching the UID from RoutingHint
.
int|string
hasOperationUid
setOperationUid
The UID of a query, matching the UID from RoutingHint
.
var
int|string
$this
getPart
Parts are in the order they should appear in the encoded key.
setPart
Parts are in the order they should appear in the encoded key.
$this
getTarget
string

