Class: Google::Apis::SpannerV1::Partition

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Partition

Returns a new instance of Partition



1594
1595
1596
# File 'generated/google/apis/spanner_v1/classes.rb', line 1594

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#partition_tokenString

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.

Returns:

  • (String)


1592
1593
1594
# File 'generated/google/apis/spanner_v1/classes.rb', line 1592

def partition_token
  @partition_token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1599
1600
1601
# File 'generated/google/apis/spanner_v1/classes.rb', line 1599

def update!(**args)
  @partition_token = args[:partition_token] if args.key?(:partition_token)
end