Class ReindexRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.ReindexRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<ReindexRequest>
- Enclosing class:
- ReindexRequest
public static class ReindexRequest.Builder extends java.lang.Object implements ObjectBuilder<ReindexRequest>
Builder for
ReindexRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ReindexRequestbuild()Builds aReindexRequest.ReindexRequest.Builderconflicts(Conflicts value)API name:conflictsReindexRequest.Builderdest(Destination value)API name:destReindexRequest.Builderdest(java.util.function.Function<Destination.Builder,ObjectBuilder<Destination>> fn)API name:destReindexRequest.BuildermaxDocs(java.lang.Long value)API name:max_docsReindexRequest.Builderrefresh(java.lang.Boolean value)Should the affected indexes be refreshed?ReindexRequest.BuilderrequestsPerSecond(java.lang.Long value)The throttle to set on this request in sub-requests per second.ReindexRequest.BuilderrequireAlias(java.lang.Boolean value)API name:require_aliasReindexRequest.Builderscript(jakarta.json.JsonValue value)API name:scriptReindexRequest.Builderscroll(java.lang.String value)Control how long to keep the search context aliveReindexRequest.Buildersize(java.lang.Long value)API name:sizeReindexRequest.Builderslices(java.lang.Long value)The number of slices this task should be divided into.ReindexRequest.Buildersource(Source value)API name:sourceReindexRequest.Buildersource(java.util.function.Function<Source.Builder,ObjectBuilder<Source>> fn)API name:sourceReindexRequest.Buildertimeout(java.lang.String value)Time each individual bulk request should wait for shards that are unavailable.ReindexRequest.BuilderwaitForActiveShards(jakarta.json.JsonValue value)Sets the number of shard copies that must be active before proceeding with the reindex operation.ReindexRequest.BuilderwaitForCompletion(java.lang.Boolean value)Should the request should block until the reindex is complete.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
refresh
Should the affected indexes be refreshed?API name:
refresh -
requestsPerSecond
The throttle to set on this request in sub-requests per second. -1 means no throttle.API name:
requests_per_second -
scroll
Control how long to keep the search context aliveAPI name:
scroll -
slices
The number of slices this task should be divided into. Defaults to 1, meaning the task isn't sliced into subtasks. Can be set toauto.API name:
slices -
timeout
Time each individual bulk request should wait for shards that are unavailable.API name:
timeout -
waitForActiveShards
Sets the number of shard copies that must be active before proceeding with the reindex operation. Defaults to 1, meaning the primary shard only. Set toallfor all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)API name:
wait_for_active_shards -
waitForCompletion
Should the request should block until the reindex is complete.API name:
wait_for_completion -
requireAlias
API name:require_alias -
conflicts
API name:conflicts -
dest
API name:dest -
dest
public ReindexRequest.Builder dest(java.util.function.Function<Destination.Builder,ObjectBuilder<Destination>> fn)API name:dest -
maxDocs
API name:max_docs -
script
API name:script -
size
API name:size -
source
API name:source -
source
public ReindexRequest.Builder source(java.util.function.Function<Source.Builder,ObjectBuilder<Source>> fn)API name:source -
build
Builds aReindexRequest.- Specified by:
buildin interfaceObjectBuilder<ReindexRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-