Firestore v1 API - Class StructuredAggregationQuery.Types.Aggregation.Types.Avg (3.5.0)

public sealed class StructuredAggregationQuery.Types.Aggregation.Types.Avg : IMessage<StructuredAggregationQuery.Types.Aggregation.Types.Avg>, IEquatable<StructuredAggregationQuery.Types.Aggregation.Types.Avg>, IDeepCloneable<StructuredAggregationQuery.Types.Aggregation.Types.Avg>, IBufferMessage, IMessage

Reference documentation and code samples for the Firestore v1 API class StructuredAggregationQuery.Types.Aggregation.Types.Avg.

Average of the values of the requested field.

  • Only numeric values will be aggregated. All non-numeric values including NULL are skipped.

  • If the aggregated values contain NaN, returns NaN. Infinity math follows IEEE-754 standards.

  • If the aggregated value set is empty, returns NULL.

  • Always returns the result as a double.

Inheritance

object > StructuredAggregationQuery.Types.Aggregation.Types.Avg

Namespace

Google.Cloud.Firestore.V1

Assembly

Google.Cloud.Firestore.V1.dll

Constructors

Avg()

public Avg()

Avg(Avg)

public Avg(StructuredAggregationQuery.Types.Aggregation.Types.Avg other)
Parameter
NameDescription
otherStructuredAggregationQueryTypesAggregationTypesAvg

Properties

Field

public StructuredQuery.Types.FieldReference Field { get; set; }

The field to aggregate on.

Property Value
TypeDescription
StructuredQueryTypesFieldReference