Class MgetResponse<TDocument>
java.lang.Object
org.opensearch.client.opensearch.core.MgetResponse<TDocument>
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable
@JsonpDeserializable
public class MgetResponse<TDocument>
extends Object
implements PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<MgetResponse<Object>> Json deserializer forMgetResponsebased on named deserializers provided by the callingJsonMapper. -
Method Summary
Modifier and TypeMethodDescriptionstatic <TDocument>
JsonpDeserializer<MgetResponse<TDocument>> createMgetResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) Create a JSON deserializer for MgetResponsefinal List<MultiGetResponseItem<TDocument>> docs()Required - API name:docsstatic <TDocument>
MgetResponse<TDocument> of(Function<MgetResponse.Builder<TDocument>, ObjectBuilder<MgetResponse<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>
voidsetupMgetResponseDeserializer(ObjectDeserializer<MgetResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer) Methods 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 forMgetResponsebased on named deserializers provided by the callingJsonMapper.
-
-
Method Details
-
of
public static <TDocument> MgetResponse<TDocument> of(Function<MgetResponse.Builder<TDocument>, ObjectBuilder<MgetResponse<TDocument>>> fn) -
docs
Required - API name:docs -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
createMgetResponseDeserializer
public static <TDocument> JsonpDeserializer<MgetResponse<TDocument>> createMgetResponseDeserializer(JsonpDeserializer<TDocument> tDocumentDeserializer) Create a JSON deserializer for MgetResponse -
setupMgetResponseDeserializer
protected static <TDocument> void setupMgetResponseDeserializer(ObjectDeserializer<MgetResponse.Builder<TDocument>> op, JsonpDeserializer<TDocument> tDocumentDeserializer)
-