Class: Google::Apis::SpannerV1::Partition
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::Partition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/spanner_v1/classes.rb,
generated/google/apis/spanner_v1/representations.rb,
generated/google/apis/spanner_v1/representations.rb
Overview
Information returned for each partition returned in a PartitionResponse.
Instance Attribute Summary collapse
-
#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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Partition
constructor
A new instance of Partition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Partition
Returns a new instance of Partition.
1911 1912 1913 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1911 def initialize(**args) update!(**args) end |
Instance Attribute Details
#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.
Corresponds to the JSON property partitionToken
NOTE: Values are automatically base64 encoded/decoded in the client library.
1909 1910 1911 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1909 def partition_token @partition_token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1916 1917 1918 |
# File 'generated/google/apis/spanner_v1/classes.rb', line 1916 def update!(**args) @partition_token = args[:partition_token] if args.key?(:partition_token) end |