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 class
SearchTemplateResponse.Builder<TDocument>
Builder forSearchTemplateResponse
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<SearchTemplateResponse<java.lang.Object>>
_DESERIALIZER
Json deserializer forSearchTemplateResponse
based 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:hits
static <TDocument>
SearchTemplateResponse<TDocument>of(java.util.function.Function<SearchTemplateResponse.Builder<TDocument>,ObjectBuilder<SearchTemplateResponse<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>
voidsetupSearchTemplateResponseDeserializer(ObjectDeserializer<SearchTemplateResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
ShardStatistics
shards()
Required - API name:_shards
boolean
timedOut()
Required - API name:timed_out
int
took()
Required - API name:took
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forSearchTemplateResponse
based 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:
serialize
in 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)
-