Stay organized with collections
Save and categorize content based on your preferences.
Firebase.Firestore.AggregateQuery
A query that calculates aggregations over an underlying query.
Summary
Public attributes
|
Query => new Query(_proxy.query(), _firestore)
|
The query of aggregations that will be calculated.
|
Public attributes
Query
Query Query => new Query(_proxy.query(), _firestore)
The query of aggregations that will be calculated.
Public functions
Equals
override bool Equals(
object obj
)
Equals
bool Equals(
AggregateQuery other
)
Compares this aggregate query with another for equality.
Details |
Parameters |
other
|
The aggregate query to compare this one with.
|
|
Returns
|
true if this aggregate query is equal to other ; false otherwise.
|
GetHashCode
override int GetHashCode()
GetSnapshotAsync
Task< AggregateQuerySnapshot > GetSnapshotAsync(
AggregateSource source
)
Asynchronously executes the query.
Details |
Parameters |
source
|
The source from which to acquire the aggregate results.
|
|
Returns
|
The results of the query.
|
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 2023-05-09 UTC.
[null,null,["Last updated 2023-05-09 UTC."],[],[],null,["# Firebase.Firestore.AggregateQuery Class Reference\n\nFirebase.Firestore.AggregateQuery\n=================================\n\nA query that calculates aggregations over an underlying query.\n\nSummary\n-------\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Query](#class_firebase_1_1_firestore_1_1_aggregate_query_1af02703a6994c78a0d2585aec079249c7)` =\u003e new Query(_proxy.query(), _firestore)` | [Query](/docs/reference/unity/class/firebase/firestore/query#class_firebase_1_1_firestore_1_1_query) The query of aggregations that will be calculated. |\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Equals](#class_firebase_1_1_firestore_1_1_aggregate_query_1aadf02c69ccc2536b32e2f01424a4c21a)`(object obj)` | `override bool` |\n| [Equals](#class_firebase_1_1_firestore_1_1_aggregate_query_1a5f46c3a976e753aacf97c0e882cdef64)`(`[AggregateQuery](/docs/reference/unity/class/firebase/firestore/aggregate-query#class_firebase_1_1_firestore_1_1_aggregate_query)` other)` | `bool` Compares this aggregate query with another for equality. |\n| [GetHashCode](#class_firebase_1_1_firestore_1_1_aggregate_query_1afc85b700480e5983d656a468b3227507)`()` | `override int` |\n| [GetSnapshotAsync](#class_firebase_1_1_firestore_1_1_aggregate_query_1a997ce2841fd11585f1424fbde7884d05)`(`[AggregateSource](/docs/reference/unity/namespace/firebase/firestore#namespace_firebase_1_1_firestore_1a026b0f28c2b3d36b66f1a3fbc6cb8646)` source)` | `Task\u003c `[AggregateQuerySnapshot](/docs/reference/unity/class/firebase/firestore/aggregate-query-snapshot#class_firebase_1_1_firestore_1_1_aggregate_query_snapshot)` \u003e` Asynchronously executes the query. |\n\nPublic attributes\n-----------------\n\n### Query\n\n```c#\nQuery Query =\u003e new Query(_proxy.query(), _firestore)\n``` \nThe query of aggregations that will be calculated.\n\nPublic functions\n----------------\n\n### Equals\n\n```c#\noverride bool Equals(\n object obj\n)\n``` \n\n### Equals\n\n```c#\nbool Equals(\n AggregateQuery other\n)\n``` \nCompares this aggregate query with another for equality.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |---------|-----------------------------------------------| | `other` | The aggregate query to compare this one with. | |\n| **Returns** | `true` if this aggregate query is equal to *other* ; `false` otherwise. |\n\n### GetHashCode\n\n```c#\noverride int GetHashCode()\n``` \n\n### GetSnapshotAsync\n\n```c#\nTask\u003c AggregateQuerySnapshot \u003e GetSnapshotAsync(\n AggregateSource source\n)\n``` \nAsynchronously executes the query.\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |----------|---------------------------------------------------------| | `source` | The source from which to acquire the aggregate results. | |\n| **Returns** | The results of the query. |"]]