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.



5470
5471
5472
# File 'lib/google/apis/spanner_v1/classes.rb', line 5470

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



5468
5469
5470
# File 'lib/google/apis/spanner_v1/classes.rb', line 5468

def index_advice
  @index_advice
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5475
5476
5477
# File 'lib/google/apis/spanner_v1/classes.rb', line 5475

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