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 classMultiGetOperation.BuilderBuilder forMultiGetOperation. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<MultiGetOperation>_DESERIALIZERJson deserializer forMultiGetOperation -
Method Summary
Modifier and Type Method Description java.lang.Stringid()Required - The unique document ID.java.lang.Stringindex()The index that contains the document.static MultiGetOperationof(java.util.function.Function<MultiGetOperation.Builder,ObjectBuilder<MultiGetOperation>> fn)java.lang.Stringrouting()The key for the primary shard the document resides on.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupMultiGetOperationDeserializer(ObjectDeserializer<MultiGetOperation.Builder> op)SourceConfigsource()Iffalse, excludes all _source fields.java.util.List<java.lang.String>storedFields()The stored fields you want to retrieve.java.lang.StringtoString()java.lang.Stringtype()API name:_typejava.lang.Longversion()API name:versionVersionTypeversionType()API name:version_typeMethods 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 -
type
@Nullable public final java.lang.String type()API name:_type -
version
@Nullable public final java.lang.Long version()API name:version -
versionType
API name:version_type -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
setupMultiGetOperationDeserializer
protected static void setupMultiGetOperationDeserializer(ObjectDeserializer<MultiGetOperation.Builder> op)
-