Google Cloud Datastore v1 API - Class AggregationQueryResults (4.7.0)

public sealed class AggregationQueryResults

Reference documentation and code samples for the Google Cloud Datastore v1 API class AggregationQueryResults.

Represents the result of an AggregationQuery.

Inheritance

object > AggregationQueryResults

Namespace

Google.Cloud.Datastore.V1

Assembly

Google.Cloud.Datastore.V1.dll

Properties

this[string]

public Value this[string alias] { get; }

Returns the result of the aggregation function that is assigned to the given alias. Will be null if was not specified in the original query.

Parameter
NameDescription
aliasstring

The alias of the aggregation function that was provided in the aggregation query. If not provided, Datastore will pick a default name following the format property_<incremental_id++>. For example: text AGGREGATE COUNT_UP_TO(1) AS count_up_to_1, COUNT_UP_TO(2), COUNT_UP_TO(3) AS count_up_to_3, COUNT_UP_TO(4) OVER ( ... ); ```

 becomes:
 ```text
 ```
 AGGREGATE
   COUNT_UP_TO(1) AS count_up_to_1,
   COUNT_UP_TO(2) AS property_1,
   COUNT_UP_TO(3) AS count_up_to_3,
   COUNT_UP_TO(4) AS property_2
 OVER (
   ...
 );
Property Value
TypeDescription
Value

The result of the aggregation function corresponding to the given alias.

MoreResults

public QueryResultBatch.Types.MoreResultsType MoreResults { get; }

The condition that caused the query to complete, indicating whether more results are available beyond the query limit or end cursor, or whether the data has been exhausted.

Property Value
TypeDescription
QueryResultBatchTypesMoreResultsType

ReadTime

public Timestamp ReadTime { get; }

The time at which the snapshot was read.

Property Value
TypeDescription
Timestamp