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
, returnsNaN
. Infinity math follows IEEE-754 standards.If the aggregated value set is empty, returns
NULL
.Always returns the result as a double.
Implements
IMessageStructuredAggregationQueryTypesAggregationTypesAvg, IEquatableStructuredAggregationQueryTypesAggregationTypesAvg, IDeepCloneableStructuredAggregationQueryTypesAggregationTypesAvg, IBufferMessage, IMessageNamespace
Google.Cloud.Firestore.V1Assembly
Google.Cloud.Firestore.V1.dll
Constructors
Avg()
public Avg()
Avg(Avg)
public Avg(StructuredAggregationQuery.Types.Aggregation.Types.Avg other)
Parameter | |
---|---|
Name | Description |
other | StructuredAggregationQueryTypesAggregationTypesAvg |
Properties
Field
public StructuredQuery.Types.FieldReference Field { get; set; }
The field to aggregate on.
Property Value | |
---|---|
Type | Description |
StructuredQueryTypesFieldReference |