Class: Google::Apis::DatastoreV1::PlanSummary

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

Planning phase information for the query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PlanSummary

Returns a new instance of PlanSummary.

[View source]

2109
2110
2111
# File 'lib/google/apis/datastore_v1/classes.rb', line 2109

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

Instance Attribute Details

#indexes_usedArray<Hash<String,Object>>

The indexes selected for the query. For example: [ "query_scope": "Collection" , "properties": "(foo ASC, __name__ ASC)", "query_scope": "Collection", " properties": "(bar ASC, __name__ ASC)" ] Corresponds to the JSON property indexesUsed

Returns:

  • (Array<Hash<String,Object>>)

2107
2108
2109
# File 'lib/google/apis/datastore_v1/classes.rb', line 2107

def indexes_used
  @indexes_used
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

2114
2115
2116
# File 'lib/google/apis/datastore_v1/classes.rb', line 2114

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