Class SearchTemplateResponse<TDocument>
java.lang.Object
co.elastic.clients.elasticsearch.core.SearchTemplateResponse<TDocument>
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class SearchTemplateResponse<TDocument> extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSearchTemplateResponse.Builder<TDocument>Builder forSearchTemplateResponse. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SearchTemplateResponse<java.lang.Object>>_DESERIALIZERJson deserializer forSearchTemplateResponsebased on named deserializers provided by the callingJsonMapper. -
Method Summary
Modifier and Type Method Description static <TDocument>
JsonpDeserializer<SearchTemplateResponse<TDocument>>createSearchTemplateResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a JSON deserializer for SearchTemplateResponseHitsMetadata<TDocument>hits()Required - API name:hitsstatic <TDocument>
SearchTemplateResponse<TDocument>of(java.util.function.Function<SearchTemplateResponse.Builder<TDocument>,ObjectBuilder<SearchTemplateResponse<TDocument>>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <TDocument>
voidsetupSearchTemplateResponseDeserializer(ObjectDeserializer<SearchTemplateResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)ShardStatisticsshards()Required - API name:_shardsbooleantimedOut()Required - API name:timed_outinttook()Required - API name:tookMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forSearchTemplateResponsebased on named deserializers provided by the callingJsonMapper.
-
-
Method Details
-
of
public static <TDocument> SearchTemplateResponse<TDocument> of(java.util.function.Function<SearchTemplateResponse.Builder<TDocument>,ObjectBuilder<SearchTemplateResponse<TDocument>>> fn) -
shards
Required - API name:_shards -
timedOut
public final boolean timedOut()Required - API name:timed_out -
took
public final int took()Required - API name:took -
hits
Required - API name:hits -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
createSearchTemplateResponseDeserializer
public static <TDocument> JsonpDeserializer<SearchTemplateResponse<TDocument>> createSearchTemplateResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer)Create a JSON deserializer for SearchTemplateResponse -
setupSearchTemplateResponseDeserializer
protected static <TDocument> void setupSearchTemplateResponseDeserializer(ObjectDeserializer<SearchTemplateResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-