Class: Google::Apis::SpannerV1::PartitionStartRecord
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::PartitionStartRecord
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/spanner_v1/classes.rb,
lib/google/apis/spanner_v1/representations.rb,
lib/google/apis/spanner_v1/representations.rb
Overview
A partition start record serves as a notification that the client should schedule the partitions to be queried. PartitionStartRecord returns information about one or more partitions.
Instance Attribute Summary collapse
-
#partition_tokens ⇒ Array<String>
Unique partition identifiers to be used in queries.
-
#record_sequence ⇒ String
Record sequence numbers are unique and monotonically increasing (but not necessarily contiguous) for a specific timestamp across record types in the same partition.
-
#start_timestamp ⇒ String
Start timestamp at which the partitions should be queried to return change stream records with timestamps >= start_timestamp.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PartitionStartRecord
constructor
A new instance of PartitionStartRecord.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PartitionStartRecord
5232 5233 5234 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5232 def initialize(**args) update!(**args) end |
Instance Attribute Details
#partition_tokens ⇒ Array<String>
Unique partition identifiers to be used in queries.
Corresponds to the JSON property partitionTokens
5212 5213 5214 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5212 def partition_tokens @partition_tokens end |
#record_sequence ⇒ String
Record sequence numbers are unique and monotonically increasing (but not
necessarily contiguous) for a specific timestamp across record types in the
same partition. To guarantee ordered processing, the reader should process
records (of potentially different types) in record_sequence order for a
specific timestamp in the same partition.
Corresponds to the JSON property recordSequence
5221 5222 5223 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5221 def record_sequence @record_sequence end |
#start_timestamp ⇒ String
Start timestamp at which the partitions should be queried to return change
stream records with timestamps >= start_timestamp. DataChangeRecord.
commit_timestamps, PartitionStartRecord.start_timestamps, PartitionEventRecord.
commit_timestamps, and PartitionEndRecord.end_timestamps can have the same
value in the same partition.
Corresponds to the JSON property startTimestamp
5230 5231 5232 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5230 def end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5237 5238 5239 5240 5241 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5237 def update!(**args) @partition_tokens = args[:partition_tokens] if args.key?(:partition_tokens) @record_sequence = args[:record_sequence] if args.key?(:record_sequence) = args[:start_timestamp] if args.key?(:start_timestamp) end |