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:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTopHitsAggregate.BuilderBuilder forTopHitsAggregate.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.aggregations.AggregateBase
AggregateBase.AbstractBuilder<BuilderT extends AggregateBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TopHitsAggregate>_DESERIALIZERJson deserializer forTopHitsAggregate -
Method Summary
Modifier and Type Method Description Aggregate.Kind_aggregateKind()Aggregate variant kind.HitsMetadata<JsonData>hits()Required - API name:hitsstatic TopHitsAggregateof(java.util.function.Function<TopHitsAggregate.Builder,ObjectBuilder<TopHitsAggregate>> fn)protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTopHitsAggregateDeserializer(ObjectDeserializer<TopHitsAggregate.Builder> op)Methods 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 forTopHitsAggregate
-
-
Method Details
-
of
public static TopHitsAggregate of(java.util.function.Function<TopHitsAggregate.Builder,ObjectBuilder<TopHitsAggregate>> fn) -
_aggregateKind
Aggregate variant kind.- Specified by:
_aggregateKindin interfaceAggregateVariant
-
hits
Required - API name:hits -
serializeInternal
- Overrides:
serializeInternalin classAggregateBase
-
setupTopHitsAggregateDeserializer
protected static void setupTopHitsAggregateDeserializer(ObjectDeserializer<TopHitsAggregate.Builder> op)
-