Firebase Kotlin SDK
Toggle table of contents
3.0.0-beta1
common
Platform filter
common
Switch theme
Search in API
Firebase Kotlin SDK
firebase-firestore
/
com.google.firebase.firestore.pipeline
/
AggregateStage
Aggregate
Stage
class
AggregateStage
:
Stage
<
AggregateStage
>
(
source
)
Groups the documents by
groups
and computes
accumulators
over each group.
Members
Types
Companion
Link copied to clipboard
object
Companion
Functions
with
Groups
Link copied to clipboard
fun
withGroups
(
group
:
Selectable
,
vararg
additionalGroups
:
Any
)
:
AggregateStage
fun
withGroups
(
groupField
:
String
,
vararg
additionalGroups
:
Any
)
:
AggregateStage
with
Option
Link copied to clipboard
fun
withOption
(
key
:
String
,
value
:
Field
)
:
AggregateStage
fun
withOption
(
key
:
String
,
value
:
Boolean
)
:
AggregateStage
fun
withOption
(
key
:
String
,
value
:
Double
)
:
AggregateStage
fun
withOption
(
key
:
String
,
value
:
Long
)
:
AggregateStage
fun
withOption
(
key
:
String
,
value
:
String
)
:
AggregateStage