AggregateQuery(const AggregateQuery & other)
AggregateQuery(AggregateQuery && other)
~AggregateQuery()
Public functions | |
---|---|
Get(AggregateSource aggregate_source) const | virtual Future< AggregateQuerySnapshot > Executes this query. |
is_valid() const | bool Returns true if this AggregateQuery is valid, false if it is not valid. |
operator=(const AggregateQuery & other) | Copy assignment operator. |
operator=(AggregateQuery && other) | Move assignment operator. |
query() const | virtual Query Returns the query whose aggregations will be calculated by this object. |
AggregateQuery()
Creates an invalid AggregateQuery that has to be reassigned before it can be used.
Calling any member function on an invalid AggregateQuery will be a no-op. If the function returns a value, it will return a zero, empty, or invalid value, depending on the type of the value.
AggregateQuery(constAggregateQuery&other)
Copy constructor.
AggregateQuery
is immutable and can be efficiently copied (no deep copy is performed).
Details | |||
---|---|---|---|
Parameters |
|
AggregateQuery(AggregateQuery&&other)
Move constructor.
Moving is more efficient than copying for a AggregateQuery
. After being moved from, a AggregateQuery
is equivalent to its default-constructed state.
Details | |||
---|---|---|---|
Parameters |
|
virtualFuture<AggregateQuerySnapshot>Get(AggregateSourceaggregate_source)const
Executes this query.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | A Future that will be resolved with the results of the AggregateQuery. |
boolis_valid()const
Returns true if this AggregateQuery
is valid, false if it is not valid.
An invalid AggregateQuery
could be the result of:
AggregateQuery
using the default constructor.AggregateQuery
.AggregateQuery
instances associated with it.Details | |
---|---|
Returns | true if this AggregateQuery is valid, false if this AggregateQuery is invalid. |
AggregateQuery&operator=(constAggregateQuery&other)
Copy assignment operator.
AggregateQuery
is immutable and can be efficiently copied (no deep copy is performed).
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | Reference to the destination AggregateQuery . |
AggregateQuery&operator=(AggregateQuery&&other)
Move assignment operator.
Moving is more efficient than copying for a AggregateQuery
. After being moved from, a AggregateQuery
is equivalent to its default-constructed state.
Details | |||
---|---|---|---|
Parameters |
| ||
Returns | Reference to the destination AggregateQuery . |
virtualQueryquery()const
Returns the query whose aggregations will be calculated by this object.
virtual~AggregateQuery()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-23 UTC.