Class TopMetricsAggregation
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
co.elastic.clients.elasticsearch._types.aggregations.TopMetricsAggregation
- All Implemented Interfaces:
AggregationVariant,JsonpSerializable
@JsonpDeserializable
public class TopMetricsAggregation
extends MetricAggregationBase
implements AggregationVariant
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
MetricAggregationBase.AbstractBuilder<BuilderT extends MetricAggregationBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<TopMetricsAggregation>Json deserializer forTopMetricsAggregation -
Method Summary
Modifier and TypeMethodDescriptionAggregation variant kind.final List<TopMetricsValue>metrics()The fields of the top document to return.static TopMetricsAggregationprotected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The number of top documents from which to return metrics.final List<SortOptions>sort()The sort order of the documents.Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.MetricAggregationBase
field, missing, script, serialize, setupMetricAggregationBaseDeserializer, 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.AggregationVariant
_toAggregation
-
Field Details
-
_DESERIALIZER
Json deserializer forTopMetricsAggregation
-
-
Method Details
-
of
public static TopMetricsAggregation of(Function<TopMetricsAggregation.Builder, ObjectBuilder<TopMetricsAggregation>> fn) -
_aggregationKind
Aggregation variant kind.- Specified by:
_aggregationKindin interfaceAggregationVariant
-
metrics
The fields of the top document to return.API name:
metrics -
size
The number of top documents from which to return metrics.API name:
size -
sort
The sort order of the documents.API name:
sort -
serializeInternal
- Overrides:
serializeInternalin classMetricAggregationBase
-
setupTopMetricsAggregationDeserializer
protected static void setupTopMetricsAggregationDeserializer(ObjectDeserializer<TopMetricsAggregation.Builder> op)
-