AggregateOptions

public final class AggregateOptions extends AbstractOptions


Summary

Public constructors

Creates a new, empty AggregateOptions object.

Public methods

@NonNull AggregateOptions
final @NonNull AggregateOptions

Specifies query hints for the aggregation.

Inherited methods

From com.google.firebase.firestore.pipeline.AbstractOptions
final @NonNull AggregateOptions
final @NonNull AggregateOptions
with(@NonNull String key, @NonNull AbstractOptions<@NonNull ?> subSection)
final @NonNull AggregateOptions
final @NonNull AggregateOptions
with(@NonNull String key, boolean value)

Specify generic Boolean option

final @NonNull AggregateOptions
with(@NonNull String key, double value)

Specify generic Double option

final @NonNull AggregateOptions
with(@NonNull String key, @NonNull Field value)

Specify generic Field option

final @NonNull AggregateOptions
final @NonNull AggregateOptions
with(@NonNull String key, long value)

Specify generic Long option

final @NonNull AggregateOptions

Specify RawOptions object

final @NonNull AggregateOptions
with(@NonNull String key, @NonNull String value)

Specify generic String option

final @NonNull AggregateOptions
with(@NonNull String key, @NonNull String values)

Public constructors

AggregateOptions

public AggregateOptions()

Creates a new, empty AggregateOptions object.

Public methods

withHints

public final @NonNull AggregateOptions withHints(@NonNull AggregateHints hints)

Specifies query hints for the aggregation.

Parameters
@NonNull AggregateHints hints

The hints to apply to the aggregation.

Returns
@NonNull AggregateOptions

A new AggregateOptions with the specified hints.