class Google::Apis::SpannerV1::PrefixNode

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.

Attributes

data_source_node[RW]

Whether this corresponds to a data_source name. Corresponds to the JSON property `dataSourceNode` @return [Boolean]

data_source_node?[RW]

Whether this corresponds to a data_source name. Corresponds to the JSON property `dataSourceNode` @return [Boolean]

depth[RW]

The depth in the prefix hierarchy. Corresponds to the JSON property `depth` @return [Fixnum]

end_index[RW]

The index of the end key bucket of the range that this node spans. Corresponds to the JSON property `endIndex` @return [Fixnum]

start_index[RW]

The index of the start key bucket of the range that this node spans. Corresponds to the JSON property `startIndex` @return [Fixnum]

word[RW]

The string represented by the prefix node. Corresponds to the JSON property `word` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/spanner_v1/classes.rb, line 3035
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/spanner_v1/classes.rb, line 3040
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