Class MultiGetOperation
java.lang.Object
co.elastic.clients.elasticsearch.core.mget.MultiGetOperation
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class MultiGetOperation extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MultiGetOperation.Builder
Builder forMultiGetOperation
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<MultiGetOperation>
_DESERIALIZER
Json deserializer forMultiGetOperation
-
Method Summary
Modifier and Type Method Description java.lang.String
id()
Required - The unique document ID.java.lang.String
index()
The index that contains the document.static MultiGetOperation
of(java.util.function.Function<MultiGetOperation.Builder,ObjectBuilder<MultiGetOperation>> fn)
java.lang.String
routing()
The key for the primary shard the document resides on.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 void
setupMultiGetOperationDeserializer(ObjectDeserializer<MultiGetOperation.Builder> op)
SourceConfig
source()
Iffalse
, excludes all _source fields.java.util.List<java.lang.String>
storedFields()
The stored fields you want to retrieve.java.lang.String
toString()
java.lang.Long
version()
API name:version
VersionType
versionType()
API name:version_type
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forMultiGetOperation
-
-
Method Details
-
of
public static MultiGetOperation of(java.util.function.Function<MultiGetOperation.Builder,ObjectBuilder<MultiGetOperation>> fn) -
id
public final java.lang.String id()Required - The unique document ID.API name:
_id
-
index
@Nullable public final java.lang.String index()The index that contains the document.API name:
_index
-
routing
@Nullable public final java.lang.String routing()The key for the primary shard the document resides on. Required if routing is used during indexing.API name:
routing
-
source
Iffalse
, excludes all _source fields.API name:
_source
-
storedFields
public final java.util.List<java.lang.String> storedFields()The stored fields you want to retrieve.API name:
stored_fields
-
version
@Nullable public final java.lang.Long version()API name:version
-
versionType
API name:version_type
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupMultiGetOperationDeserializer
protected static void setupMultiGetOperationDeserializer(ObjectDeserializer<MultiGetOperation.Builder> op)
-