Class SearchTemplateResponse<TDocument>
- java.lang.Object
-
- org.opensearch.client.opensearch.core.SearchTemplateResponse<TDocument>
-
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class SearchTemplateResponse<TDocument> extends java.lang.Object implements JsonpSerializable
-
-
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
All Methods Static Methods Instance Methods Concrete Methods 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:took
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<SearchTemplateResponse<java.lang.Object>> _DESERIALIZER
Json deserializer forSearchTemplateResponsebased on named deserializers provided by the callingJsonMapper.
-
-
Method Detail
-
of
public static <TDocument> SearchTemplateResponse<TDocument> of(java.util.function.Function<SearchTemplateResponse.Builder<TDocument>,ObjectBuilder<SearchTemplateResponse<TDocument>>> fn)
-
shards
public final ShardStatistics 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
public final HitsMetadata<TDocument> hits()
Required - API name:hits
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
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)
-
-