Class MultiGetOperation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MultiGetOperation.Builder>
co.elastic.clients.elasticsearch.core.mget.MultiGetOperation.Builder
- All Implemented Interfaces:
WithJson<MultiGetOperation.Builder>,ObjectBuilder<MultiGetOperation>
- Enclosing class:
- MultiGetOperation
public static class MultiGetOperation.Builder
extends WithJsonObjectBuilderBase<MultiGetOperation.Builder>
implements ObjectBuilder<MultiGetOperation>
Builder for
MultiGetOperation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMultiGetOperation.Required - The unique document ID.The index that contains the document.The key for the primary shard the document resides on.The key for the primary shard the document resides on.protected MultiGetOperation.Builderself()source(SourceConfig value) Iffalse, excludes all _source fields.Iffalse, excludes all _source fields.storedFields(String value, String... values) The stored fields you want to retrieve.storedFields(List<String> list) The stored fields you want to retrieve.API name:versionversionType(VersionType value) API name:version_typeMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
Required - The unique document ID.API name:
_id -
index
The index that contains the document.API name:
_index -
routing
The key for the primary shard the document resides on. Required if routing is used during indexing.API name:
routingAdds all elements of
listtorouting. -
routing
The key for the primary shard the document resides on. Required if routing is used during indexing.API name:
routingAdds one or more values to
routing. -
source
Iffalse, excludes all _source fields.API name:
_source -
source
public final MultiGetOperation.Builder source(Function<SourceConfig.Builder, ObjectBuilder<SourceConfig>> fn) Iffalse, excludes all _source fields.API name:
_source -
storedFields
The stored fields you want to retrieve.API name:
stored_fieldsAdds all elements of
listtostoredFields. -
storedFields
The stored fields you want to retrieve.API name:
stored_fieldsAdds one or more values to
storedFields. -
version
API name:version -
versionType
API name:version_type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<MultiGetOperation.Builder>
-
build
Builds aMultiGetOperation.- Specified by:
buildin interfaceObjectBuilder<MultiGetOperation>- Throws:
NullPointerException- if some of the required fields are null.
-