Class RollupSearchResponse<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.rollup.RollupSearchResponse<TDocument>
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class RollupSearchResponse<TDocument> extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RollupSearchResponse.Builder<TDocument>
Builder forRollupSearchResponse
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RollupSearchResponse<java.lang.Object>>
_DESERIALIZER
Json deserializer forRollupSearchResponse
based on named deserializers provided by the callingJsonMapper
. -
Method Summary
Modifier and Type Method Description java.util.Map<java.lang.String,Aggregate>
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
static <TDocument>
RollupSearchResponse<TDocument>of(java.util.function.Function<RollupSearchResponse.Builder<TDocument>,ObjectBuilder<RollupSearchResponse<TDocument>>> fn)
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(ObjectDeserializer<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
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRollupSearchResponse
based on named deserializers provided by the callingJsonMapper
.
-
-
Method Details
-
of
public static <TDocument> RollupSearchResponse<TDocument> of(java.util.function.Function<RollupSearchResponse.Builder<TDocument>,ObjectBuilder<RollupSearchResponse<TDocument>>> fn) -
took
public final long took()Required - API name:took
-
timedOut
public final boolean timedOut()Required - API name:timed_out
-
terminatedEarly
@Nullable public final java.lang.Boolean terminatedEarly()API name:terminated_early
-
shards
Required - API name:_shards
-
hits
Required - API name:hits
-
aggregations
API name:aggregations
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
createRollupSearchResponseDeserializer
public static <TDocument> JsonpDeserializer<RollupSearchResponse<TDocument>> createRollupSearchResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a JSON deserializer for RollupSearchResponse -
setupRollupSearchResponseDeserializer
protected static <TDocument> void setupRollupSearchResponseDeserializer(ObjectDeserializer<RollupSearchResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-