Class: Google::Apis::DatastoreV1::QueryPlan

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

Overview

Plan for the query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryPlan

Returns a new instance of QueryPlan.



2096
2097
2098
# File 'lib/google/apis/datastore_v1/classes.rb', line 2096

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

Instance Attribute Details

#plan_infoHash<String,Object>

Planning phase information for the query. It will include: "indexes_used": [ "query_scope": "Collection", "properties": "(foo ASC, name ASC)"," query_scope": "Collection", "properties": "(bar ASC, name ASC)"] Corresponds to the JSON property planInfo

Returns:

  • (Hash<String,Object>)


2094
2095
2096
# File 'lib/google/apis/datastore_v1/classes.rb', line 2094

def plan_info
  @plan_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2101
2102
2103
# File 'lib/google/apis/datastore_v1/classes.rb', line 2101

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