Class: Google::Apis::SpannerV1::IndexedHotKey
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::IndexedHotKey
- 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 message representing a (sparse) collection of hot keys for specific key buckets.
Instance Attribute Summary collapse
-
#sparse_hot_keys ⇒ Hash<String,Fixnum>
A (sparse) mapping from key bucket index to the index of the specific hot row key for that key bucket.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IndexedHotKey
constructor
A new instance of IndexedHotKey.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ IndexedHotKey
Returns a new instance of IndexedHotKey.
1546 1547 1548 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1546 def initialize(**args) update!(**args) end |
Instance Attribute Details
#sparse_hot_keys ⇒ Hash<String,Fixnum>
A (sparse) mapping from key bucket index to the index of the specific hot row
key for that key bucket. The index of the hot row key can be translated to the
actual row key via the ScanData.VisualizationData.indexed_keys repeated field.
Corresponds to the JSON property sparseHotKeys
1544 1545 1546 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1544 def sparse_hot_keys @sparse_hot_keys end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1551 1552 1553 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 1551 def update!(**args) @sparse_hot_keys = args[:sparse_hot_keys] if args.key?(:sparse_hot_keys) end |