AggregateStage.Companion

public static class AggregateStage.Companion


Summary

Public methods

static final @NonNull AggregateStage
withAccumulators(
    @NonNull AliasedAggregate accumulator,
    @NonNull AliasedAggregate additionalAccumulators
)

Create AggregateStage with one or more accumulators.

Public methods

withAccumulators

public static final @NonNull AggregateStage withAccumulators(
    @NonNull AliasedAggregate accumulator,
    @NonNull AliasedAggregate additionalAccumulators
)

Create AggregateStage with one or more accumulators.

Parameters
@NonNull AliasedAggregate accumulator

The first AliasedAggregate expression, wrapping an AggregateFunction with an alias for the accumulated results.

@NonNull AliasedAggregate additionalAccumulators

The AliasedAggregate expressions, each wrapping an AggregateFunction with an alias for the accumulated results.

Returns
@NonNull AggregateStage

AggregateStage with specified accumulators.