Class RollupSearchResponse<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.rollup.RollupSearchResponse<TDocument>
- All Implemented Interfaces:
JsonpSerializable
public final class RollupSearchResponse<TDocument> extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RollupSearchResponse.Builder<TDocument>
Builder forRollupSearchResponse
. -
Constructor Summary
Constructors Constructor Description RollupSearchResponse(RollupSearchResponse.Builder<TDocument> builder)
RollupSearchResponse(java.util.function.Function<RollupSearchResponse.Builder<TDocument>,RollupSearchResponse.Builder<TDocument>> fn)
-
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,jakarta.json.JsonValue>
aggregations()
API name:aggregations
static <TDocument>
JsonpDeserializer<RollupSearchResponse<TDocument>>createRollupSearchResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)
Create a json deserializer for RollupSearchResponseHitsMetadata<TDocument>
hits()
Required - API name:hits
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static <TDocument>
voidsetupRollupSearchResponseDeserializer(DelegatingDeserializer<RollupSearchResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
ShardStatistics
shards()
Required - API name:_shards
java.lang.Boolean
terminatedEarly()
API name:terminated_early
boolean
timedOut()
Required - API name:timed_out
long
took()
Required - API name:took
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
RollupSearchResponse
-
RollupSearchResponse
public RollupSearchResponse(java.util.function.Function<RollupSearchResponse.Builder<TDocument>,RollupSearchResponse.Builder<TDocument>> fn)
-
-
Method Details
-
took
public long took()Required - API name:took
-
timedOut
public boolean timedOut()Required - API name:timed_out
-
terminatedEarly
@Nullable public java.lang.Boolean terminatedEarly()API name:terminated_early
-
shards
Required - API name:_shards
-
hits
Required - API name:hits
-
aggregations
@Nullable public java.util.Map<java.lang.String,jakarta.json.JsonValue> aggregations()API name:aggregations
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
createRollupSearchResponseDeserializer
public static <TDocument> JsonpDeserializer<RollupSearchResponse<TDocument>> createRollupSearchResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a json deserializer for RollupSearchResponse -
setupRollupSearchResponseDeserializer
protected static <TDocument> void setupRollupSearchResponseDeserializer(DelegatingDeserializer<RollupSearchResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-