@InternalExtensionOnly public class AggregateQuery extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object)
Compares this object with the given object for equality.
|
static AggregateQuery |
fromProto(Firestore firestore,
RunAggregationQueryRequest proto)
Returns an AggregateQuery instance that can be used to execute the provided
RunAggregationQueryRequest . |
com.google.api.core.ApiFuture<AggregateQuerySnapshot> |
get()
Executes this query.
|
Query |
getQuery()
Returns the query whose aggregations will be calculated by this object.
|
int |
hashCode()
Calculates and returns the hash code for this object.
|
RunAggregationQueryRequest |
toProto()
Returns the
RunAggregationQueryRequest that this AggregateQuery instance represents. |
@Nonnull public Query getQuery()
@Nonnull public com.google.api.core.ApiFuture<AggregateQuerySnapshot> get()
ApiFuture
that will be resolved with the results of the query.@Nonnull public RunAggregationQueryRequest toProto()
RunAggregationQueryRequest
that this AggregateQuery instance represents.
The request contain the serialized form of all aggregations and Query constraints.@Nonnull public static AggregateQuery fromProto(Firestore firestore, RunAggregationQueryRequest proto)
RunAggregationQueryRequest
.
Only RunAggregationQueryRequests that pertain to the same project as the Firestore instance can be deserialized.
firestore
- a Firestore instance to apply the query to.proto
- the serialized RunAggregationQueryRequest.public int hashCode()
public boolean equals(Object object)
This object is considered "equal" to the other object if and only if all of the following conditions are satisfied:
object
is a non-null instance of AggregateQuery
.
object
performs the same aggregations as this AggregateQuery
.
Query
of object
compares equal to that of this object.
Copyright © 2023 Google LLC. All rights reserved.