Class: Google::Apis::SpannerV1::PrefixNode

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrefixNode

Returns a new instance of PrefixNode.



3064
3065
3066
# File 'lib/google/apis/spanner_v1/classes.rb', line 3064

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

Instance Attribute Details

#data_source_nodeBoolean Also known as: data_source_node?

Whether this corresponds to a data_source name. Corresponds to the JSON property dataSourceNode

Returns:

  • (Boolean)


3041
3042
3043
# File 'lib/google/apis/spanner_v1/classes.rb', line 3041

def data_source_node
  @data_source_node
end

#depthFixnum

The depth in the prefix hierarchy. Corresponds to the JSON property depth

Returns:

  • (Fixnum)


3047
3048
3049
# File 'lib/google/apis/spanner_v1/classes.rb', line 3047

def depth
  @depth
end

#end_indexFixnum

The index of the end key bucket of the range that this node spans. Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


3052
3053
3054
# File 'lib/google/apis/spanner_v1/classes.rb', line 3052

def end_index
  @end_index
end

#start_indexFixnum

The index of the start key bucket of the range that this node spans. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


3057
3058
3059
# File 'lib/google/apis/spanner_v1/classes.rb', line 3057

def start_index
  @start_index
end

#wordString

The string represented by the prefix node. Corresponds to the JSON property word

Returns:

  • (String)


3062
3063
3064
# File 'lib/google/apis/spanner_v1/classes.rb', line 3062

def word
  @word
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3069
3070
3071
3072
3073
3074
3075
# File 'lib/google/apis/spanner_v1/classes.rb', line 3069

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