Class: Google::Apis::SpannerV1::ShortRepresentation

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

Condensed representation of a node and its subtree. Only present for SCALAR PlanNode(s).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShortRepresentation

Returns a new instance of ShortRepresentation.



3858
3859
3860
# File 'lib/google/apis/spanner_v1/classes.rb', line 3858

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

Instance Attribute Details

#descriptionString

A string representation of the expression subtree rooted at this node. Corresponds to the JSON property description

Returns:

  • (String)


3848
3849
3850
# File 'lib/google/apis/spanner_v1/classes.rb', line 3848

def description
  @description
end

#subqueriesHash<String,Fixnum>

A mapping of (subquery variable name) -> (subquery node id) for cases where the description string of this node references a SCALAR subquery contained in the expression subtree rooted at this node. The referenced SCALAR subquery may not necessarily be a direct child of this node. Corresponds to the JSON property subqueries

Returns:

  • (Hash<String,Fixnum>)


3856
3857
3858
# File 'lib/google/apis/spanner_v1/classes.rb', line 3856

def subqueries
  @subqueries
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3863
3864
3865
3866
# File 'lib/google/apis/spanner_v1/classes.rb', line 3863

def update!(**args)
  @description = args[:description] if args.key?(:description)
  @subqueries = args[:subqueries] if args.key?(:subqueries)
end