Class: Google::Apis::SpannerV1::SplitPoints
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::SplitPoints
- 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
The split points of a table or an index.
Instance Attribute Summary collapse
-
#expire_time ⇒ String
Optional.
-
#index ⇒ String
The index to split.
-
#keys ⇒ Array<Google::Apis::SpannerV1::Key>
Required.
-
#table ⇒ String
The table to split.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SplitPoints
constructor
A new instance of SplitPoints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SplitPoints
Returns a new instance of SplitPoints.
6565 6566 6567 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6565 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expire_time ⇒ String
Optional. The expiration timestamp of the split points. A timestamp in the
past means immediate expiration. The maximum value can be 30 days in the
future. Defaults to 10 days in the future if not specified.
Corresponds to the JSON property expireTime
6547 6548 6549 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6547 def expire_time @expire_time end |
#index ⇒ String
The index to split. If specified, the table field must refer to the index's
base table.
Corresponds to the JSON property index
6553 6554 6555 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6553 def index @index end |
#keys ⇒ Array<Google::Apis::SpannerV1::Key>
Required. The list of split keys. In essence, the split boundaries.
Corresponds to the JSON property keys
6558 6559 6560 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6558 def keys @keys end |
#table ⇒ String
The table to split.
Corresponds to the JSON property table
6563 6564 6565 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6563 def table @table end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6570 6571 6572 6573 6574 6575 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 6570 def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) @index = args[:index] if args.key?(:index) @keys = args[:keys] if args.key?(:keys) @table = args[:table] if args.key?(:table) end |