Class GetResponse<TDocument>
java.lang.Object
org.opensearch.client.opensearch.core.get.GetResult<TDocument>
org.opensearch.client.opensearch.core.GetResponse<TDocument>
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch.core.get.GetResult
GetResult.AbstractBuilder<TDocument,BuilderT extends GetResult.AbstractBuilder<TDocument, BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GetResponse<Object>> Json deserializer forGetResponsebased on named deserializers provided by the callingJsonMapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic <TDocument>
JsonpDeserializer<GetResponse<TDocument>> createGetResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) Create a JSON deserializer for GetResponsestatic <TDocument>
GetResponse<TDocument> of(Function<GetResponse.Builder<TDocument>, ObjectBuilder<GetResponse<TDocument>>> fn) protected static <TDocument>
voidsetupGetResponseDeserializer(ObjectDeserializer<GetResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer) Methods inherited from class org.opensearch.client.opensearch.core.get.GetResult
createGetResultDeserializer, fields, found, getResultOf, id, index, primaryTerm, routing, seqNo, serialize, serializeInternal, setupGetResultDeserializer, source, versionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
Json deserializer forGetResponsebased on named deserializers provided by the callingJsonMapper.
-
-
Method Details
-
of
public static <TDocument> GetResponse<TDocument> of(Function<GetResponse.Builder<TDocument>, ObjectBuilder<GetResponse<TDocument>>> fn) -
createGetResponseDeserializer
public static <TDocument> JsonpDeserializer<GetResponse<TDocument>> createGetResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) Create a JSON deserializer for GetResponse -
setupGetResponseDeserializer
protected static <TDocument> void setupGetResponseDeserializer(ObjectDeserializer<GetResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-