Class StatsAggregate
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase
co.elastic.clients.elasticsearch._types.aggregations.StatsAggregate
- All Implemented Interfaces:
AggregateVariant,JsonpSerializable
- Direct Known Subclasses:
ExtendedStatsAggregate,StatsBucketAggregate
Statistics aggregation result.
min, max and
avg are missing if there were no values to process
(count is zero).- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<StatsAggregate>Json deserializer forStatsAggregate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStatsAggregate(StatsAggregate.AbstractBuilder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionAggregate variant kind.final doubleavg()Required - API name:avgfinal StringAPI name:avg_as_stringfinal longcount()Required - API name:countfinal doublemax()Required - API name:maxfinal StringAPI name:max_as_stringfinal doublemin()Required - API name:minfinal StringAPI name:min_as_stringprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static <BuilderT extends StatsAggregate.AbstractBuilder<BuilderT>>
voidsetupStatsAggregateDeserializer(ObjectDeserializer<BuilderT> op) static StatsAggregatefinal doublesum()Required - API name:sumfinal StringAPI name:sum_as_stringMethods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase
meta, serialize, setupAggregateBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregateVariant
_toAggregate
-
Field Details
-
_DESERIALIZER
Json deserializer forStatsAggregate
-
-
Constructor Details
-
StatsAggregate
-
-
Method Details
-
statsAggregateOf
public static StatsAggregate statsAggregateOf(Function<StatsAggregate.Builder, ObjectBuilder<StatsAggregate>> fn) -
_aggregateKind
Aggregate variant kind.- Specified by:
_aggregateKindin interfaceAggregateVariant
-
count
public final long count()Required - API name:count -
min
public final double min()Required - API name:minDefaults to
Double.POSITIVE_INFINITYif parsed from a JSONnullvalue. -
max
public final double max()Required - API name:maxDefaults to
Double.NEGATIVE_INFINITYif parsed from a JSONnullvalue. -
avg
public final double avg()Required - API name:avgDefaults to
0if parsed from a JSONnullvalue. -
sum
public final double sum()Required - API name:sum -
minAsString
API name:min_as_string -
maxAsString
API name:max_as_string -
avgAsString
API name:avg_as_string -
sumAsString
API name:sum_as_string -
serializeInternal
- Overrides:
serializeInternalin classAggregateBase
-
setupStatsAggregateDeserializer
protected static <BuilderT extends StatsAggregate.AbstractBuilder<BuilderT>> void setupStatsAggregateDeserializer(ObjectDeserializer<BuilderT> op)
-