AggregateField.SumAggregateField

public class AggregateField.SumAggregateField extends AggregateField


Represents a "sum" aggregation that can be performed by Firestore.

Summary

Inherited methods

From com.google.firebase.firestore.AggregateField
static @NonNull AggregateField.AverageAggregateField

Create an AverageAggregateField object that can be used to compute the average of a specified field over a range of documents in the result set of a query.

static @NonNull AggregateField.AverageAggregateField

Create an AverageAggregateField object that can be used to compute the average of a specified field over a range of documents in the result set of a query.

static @NonNull AggregateField.CountAggregateField

Create a CountAggregateField object that can be used to compute the count of documents in the result set of a query.

boolean
equals(Object other)

Returns true if the given object is equal to this object.

int

Calculates and returns the hash code for this object.

static @NonNull AggregateField.SumAggregateField
sum(@NonNull String field)

Create a SumAggregateField object that can be used to compute the sum of a specified field over a range of documents in the result set of a query.

static @NonNull AggregateField.SumAggregateField
sum(@NonNull FieldPath fieldPath)

Create a SumAggregateField object that can be used to compute the sum of a specified field over a range of documents in the result set of a query.