Class: Google::Apis::SpannerV1::PrefixNode
- Inherits:
-
Object
- Object
- Google::Apis::SpannerV1::PrefixNode
- 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 key prefix node in the key prefix hierarchy. for eg. Bigtable keyspaces are lexicographically ordered mappings of keys to values. Keys often have a shared prefix structure where users use the keys to organize data. Eg ///employee In this case Keysight will possibly use one node for a company and reuse it for all employees that fall under the company. Doing so improves legibility in the UI.
Instance Attribute Summary collapse
-
#data_source_node ⇒ Boolean
(also: #data_source_node?)
Whether this corresponds to a data_source name.
-
#depth ⇒ Fixnum
The depth in the prefix hierarchy.
-
#end_index ⇒ Fixnum
The index of the end key bucket of the range that this node spans.
-
#start_index ⇒ Fixnum
The index of the start key bucket of the range that this node spans.
-
#word ⇒ String
The string represented by the prefix node.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrefixNode
constructor
A new instance of PrefixNode.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PrefixNode
Returns a new instance of PrefixNode.
5445 5446 5447 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5445 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_source_node ⇒ Boolean Also known as: data_source_node?
Whether this corresponds to a data_source name.
Corresponds to the JSON property dataSourceNode
5422 5423 5424 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5422 def data_source_node @data_source_node end |
#depth ⇒ Fixnum
The depth in the prefix hierarchy.
Corresponds to the JSON property depth
5428 5429 5430 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5428 def depth @depth end |
#end_index ⇒ Fixnum
The index of the end key bucket of the range that this node spans.
Corresponds to the JSON property endIndex
5433 5434 5435 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5433 def end_index @end_index end |
#start_index ⇒ Fixnum
The index of the start key bucket of the range that this node spans.
Corresponds to the JSON property startIndex
5438 5439 5440 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5438 def start_index @start_index end |
#word ⇒ String
The string represented by the prefix node.
Corresponds to the JSON property word
5443 5444 5445 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5443 def word @word end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5450 5451 5452 5453 5454 5455 5456 |
# File 'lib/google/apis/spanner_v1/classes.rb', line 5450 def update!(**args) @data_source_node = args[:data_source_node] if args.key?(:data_source_node) @depth = args[:depth] if args.key?(:depth) @end_index = args[:end_index] if args.key?(:end_index) @start_index = args[:start_index] if args.key?(:start_index) @word = args[:word] if args.key?(:word) end |