Class: Google::Apis::DatastoreV1::ExplainOptions

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1/classes.rb,
lib/google/apis/datastore_v1/representations.rb,
lib/google/apis/datastore_v1/representations.rb
more...

Overview

Explain options for the query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExplainOptions

Returns a new instance of ExplainOptions.

[View source]

624
625
626
# File 'lib/google/apis/datastore_v1/classes.rb', line 624

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

Instance Attribute Details

#analyzeBoolean Also known as: analyze?

Optional. Whether to execute this query. When false (the default), the query will be planned, returning only metrics from the planning stages. When true, the query will be planned and executed, returning the full query results along with both planning and execution stage metrics. Corresponds to the JSON property analyze

Returns:

  • (Boolean)

621
622
623
# File 'lib/google/apis/datastore_v1/classes.rb', line 621

def analyze
  @analyze
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

629
630
631
# File 'lib/google/apis/datastore_v1/classes.rb', line 629

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