Class TopHitsAggregate
java.lang.Object
co.elastic.clients.elasticsearch._types.aggregations.AggregateBase
co.elastic.clients.elasticsearch._types.aggregations.TopHitsAggregate
- All Implemented Interfaces:
AggregateVariant
,JsonpSerializable
@JsonpDeserializable
public class TopHitsAggregate
extends AggregateBase
implements AggregateVariant
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase
AggregateBase.AbstractBuilder<BuilderT extends AggregateBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<TopHitsAggregate>
Json deserializer forTopHitsAggregate
-
Method Summary
Modifier and TypeMethodDescriptionAggregate variant kind.final HitsMetadata<JsonData>
hits()
Required - API name:hits
static TopHitsAggregate
protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Methods inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase
meta, serialize, setupAggregateBaseDeserializer, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch._types.aggregations.AggregateVariant
_toAggregate
-
Field Details
-
_DESERIALIZER
Json deserializer forTopHitsAggregate
-
-
Method Details
-
of
public static TopHitsAggregate of(Function<TopHitsAggregate.Builder, ObjectBuilder<TopHitsAggregate>> fn) -
_aggregateKind
Aggregate variant kind.- Specified by:
_aggregateKind
in interfaceAggregateVariant
-
hits
Required - API name:hits
-
serializeInternal
- Overrides:
serializeInternal
in classAggregateBase
-
setupTopHitsAggregateDeserializer
protected static void setupTopHitsAggregateDeserializer(ObjectDeserializer<TopHitsAggregate.Builder> op)
-