Class Destination.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Destination.Builder>
co.elastic.clients.elasticsearch.core.reindex.Destination.Builder
- All Implemented Interfaces:
WithJson<Destination.Builder>,ObjectBuilder<Destination>
- Enclosing class:
- Destination
public static class Destination.Builder
extends WithJsonObjectBuilderBase<Destination.Builder>
implements ObjectBuilder<Destination>
Builder for
Destination.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDestination.final Destination.BuilderRequired - The name of the data stream, index, or index alias you are copying to.final Destination.BuilderIf it iscreate, the operation will only index documents that do not already exist (also known as "put if absent").final Destination.BuilderThe name of the pipeline to use.final Destination.BuilderBy default, a document's routing is preserved unless it's changed by the script.protected Destination.Builderself()final Destination.BuilderversionType(VersionType value) The versioning to use for the indexing operation.Methods 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
-
index
Required - The name of the data stream, index, or index alias you are copying to.API name:
index -
opType
If it iscreate, the operation will only index documents that do not already exist (also known as "put if absent").IMPORTANT: To reindex to a data stream destination, this argument must be
create.API name:
op_type -
pipeline
The name of the pipeline to use.API name:
pipeline -
routing
By default, a document's routing is preserved unless it's changed by the script. If it iskeep, the routing on the bulk request sent for each match is set to the routing on the match. If it isdiscard, the routing on the bulk request sent for each match is set tonull. If it is=value, the routing on the bulk request sent for each match is set to all value specified after the equals sign (=).API name:
routing -
versionType
The versioning to use for the indexing operation.API name:
version_type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Destination.Builder>
-
build
Builds aDestination.- Specified by:
buildin interfaceObjectBuilder<Destination>- Throws:
NullPointerException- if some of the required fields are null.
-