Cloud Datastore V1 Client - Class ResultSetStats (1.26.0)

Reference documentation and code samples for the Cloud Datastore V1 Client class ResultSetStats.

Planning and execution statistics for the query.

Generated from protobuf message google.datastore.v1.ResultSetStats

Namespace

Google \ Cloud \ Datastore \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ query_plan Google\Cloud\Datastore\V1\QueryPlan

Plan for the query.

↳ query_stats Google\Protobuf\Struct

Aggregated statistics from the execution of the query. This will only be present when the request specifies PROFILE mode. For example, a query will return the statistics including: { "results_returned": "20", "documents_scanned": "20", "indexes_entries_scanned": "10050", "total_execution_time": "100.7 msecs" }

getQueryPlan

Plan for the query.

Returns
TypeDescription
Google\Cloud\Datastore\V1\QueryPlan|null

hasQueryPlan

clearQueryPlan

setQueryPlan

Plan for the query.

Parameter
NameDescription
var Google\Cloud\Datastore\V1\QueryPlan
Returns
TypeDescription
$this

getQueryStats

Aggregated statistics from the execution of the query.

This will only be present when the request specifies PROFILE mode. For example, a query will return the statistics including: { "results_returned": "20", "documents_scanned": "20", "indexes_entries_scanned": "10050", "total_execution_time": "100.7 msecs" }

Returns
TypeDescription
Google\Protobuf\Struct|null

hasQueryStats

clearQueryStats

setQueryStats

Aggregated statistics from the execution of the query.

This will only be present when the request specifies PROFILE mode. For example, a query will return the statistics including: { "results_returned": "20", "documents_scanned": "20", "indexes_entries_scanned": "10050", "total_execution_time": "100.7 msecs" }

Parameter
NameDescription
var Google\Protobuf\Struct
Returns
TypeDescription
$this