Class: Google::Apis::SpannerV1::QueryAdvisorResult

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

Output of query advisor analysis.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryAdvisorResult

Returns a new instance of QueryAdvisorResult.



4988
4989
4990
# File 'lib/google/apis/spanner_v1/classes.rb', line 4988

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

Instance Attribute Details

#index_adviceArray<Google::Apis::SpannerV1::IndexAdvice>

Optional. Index Recommendation for a query. This is an optional field and the recommendation will only be available when the recommendation guarantees significant improvement in query performance. Corresponds to the JSON property indexAdvice



4986
4987
4988
# File 'lib/google/apis/spanner_v1/classes.rb', line 4986

def index_advice
  @index_advice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4993
4994
4995
# File 'lib/google/apis/spanner_v1/classes.rb', line 4993

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