Class ReindexRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReindexRequest.Builder>
co.elastic.clients.elasticsearch.core.ReindexRequest.Builder
- All Implemented Interfaces:
WithJson<ReindexRequest.Builder>,ObjectBuilder<ReindexRequest>
- Enclosing class:
- ReindexRequest
public static class ReindexRequest.Builder extends WithJsonObjectBuilderBase<ReindexRequest.Builder> 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)Required - API name:destReindexRequest.Builderdest(java.util.function.Function<Destination.Builder,ObjectBuilder<Destination>> fn)Required - 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(Script value)API name:scriptReindexRequest.Builderscript(java.util.function.Function<Script.Builder,ObjectBuilder<Script>> fn)API name:scriptReindexRequest.Builderscroll(Time value)Control how long to keep the search context aliveReindexRequest.Builderscroll(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Control how long to keep the search context aliveprotected ReindexRequest.Builderself()ReindexRequest.Buildersize(java.lang.Long value)API name:sizeReindexRequest.Builderslices(Slices value)The number of slices this task should be divided into.ReindexRequest.Builderslices(java.util.function.Function<Slices.Builder,ObjectBuilder<Slices>> fn)The number of slices this task should be divided into.ReindexRequest.Buildersource(Source value)Required - API name:sourceReindexRequest.Buildersource(java.util.function.Function<Source.Builder,ObjectBuilder<Source>> fn)Required - API name:sourceReindexRequest.Buildertimeout(Time value)Time each individual bulk request should wait for shards that are unavailable.ReindexRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Time each individual bulk request should wait for shards that are unavailable.ReindexRequest.BuilderwaitForActiveShards(WaitForActiveShards value)Sets the number of shard copies that must be active before proceeding with the reindex operation.ReindexRequest.BuilderwaitForActiveShards(java.util.function.Function<WaitForActiveShards.Builder,ObjectBuilder<WaitForActiveShards>> fn)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 co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
conflicts
API name:conflicts -
dest
Required - API name:dest -
dest
public final ReindexRequest.Builder dest(java.util.function.Function<Destination.Builder,ObjectBuilder<Destination>> fn)Required - API name:dest -
maxDocs
API name:max_docs -
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 -
requireAlias
API name:require_alias -
script
API name:script -
script
public final ReindexRequest.Builder script(java.util.function.Function<Script.Builder,ObjectBuilder<Script>> fn)API name:script -
scroll
Control how long to keep the search context aliveAPI name:
scroll -
scroll
public final ReindexRequest.Builder scroll(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Control how long to keep the search context aliveAPI name:
scroll -
size
API name:size -
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 -
slices
public final ReindexRequest.Builder slices(java.util.function.Function<Slices.Builder,ObjectBuilder<Slices>> fn)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 -
source
Required - API name:source -
source
public final ReindexRequest.Builder source(java.util.function.Function<Source.Builder,ObjectBuilder<Source>> fn)Required - API name:source -
timeout
Time each individual bulk request should wait for shards that are unavailable.API name:
timeout -
timeout
public final ReindexRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)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 -
waitForActiveShards
public final ReindexRequest.Builder waitForActiveShards(java.util.function.Function<WaitForActiveShards.Builder,ObjectBuilder<WaitForActiveShards>> fn)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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ReindexRequest.Builder>
-
build
Builds aReindexRequest.- Specified by:
buildin interfaceObjectBuilder<ReindexRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-