Class ReindexRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch._core.ReindexRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest
,JsonpSerializable
@JsonpDeserializable public final class ReindexRequest extends RequestBase implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReindexRequest.Builder
Builder forReindexRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ReindexRequest>
_DESERIALIZER
Json deserializer forReindexRequest
static Endpoint<ReindexRequest,ReindexResponse,ElasticsearchError>
ENDPOINT
Endpoint "reindex
". -
Constructor Summary
Constructors Constructor Description ReindexRequest(ReindexRequest.Builder builder)
ReindexRequest(java.util.function.Function<ReindexRequest.Builder,ReindexRequest.Builder> fn)
-
Method Summary
Modifier and Type Method Description Conflicts
conflicts()
API name:conflicts
Destination
dest()
API name:dest
java.lang.Long
maxDocs()
API name:max_docs
java.lang.Boolean
refresh()
Should the affected indexes be refreshed?java.lang.Long
requestsPerSecond()
The throttle to set on this request in sub-requests per second.java.lang.Boolean
requireAlias()
API name:require_alias
jakarta.json.JsonValue
script()
API name:script
java.lang.String
scroll()
Control how long to keep the search context alivevoid
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupReindexRequestDeserializer(DelegatingDeserializer<ReindexRequest.Builder> op)
java.lang.Long
size()
API name:size
java.lang.Long
slices()
The number of slices this task should be divided into.Source
source()
API name:source
java.lang.String
timeout()
Time each individual bulk request should wait for shards that are unavailable.jakarta.json.JsonValue
waitForActiveShards()
Sets the number of shard copies that must be active before proceeding with the reindex operation.java.lang.Boolean
waitForCompletion()
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
-
Field Details
-
_DESERIALIZER
Json deserializer forReindexRequest
-
ENDPOINT
Endpoint "reindex
".
-
-
Constructor Details
-
ReindexRequest
-
ReindexRequest
public ReindexRequest(java.util.function.Function<ReindexRequest.Builder,ReindexRequest.Builder> fn)
-
-
Method Details
-
refresh
@Nullable public java.lang.Boolean refresh()Should the affected indexes be refreshed?API name:
refresh
-
requestsPerSecond
@Nullable public java.lang.Long requestsPerSecond()The throttle to set on this request in sub-requests per second. -1 means no throttle.API name:
requests_per_second
-
scroll
@Nullable public java.lang.String scroll()Control how long to keep the search context aliveAPI name:
scroll
-
slices
@Nullable public java.lang.Long 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
@Nullable public java.lang.String timeout()Time each individual bulk request should wait for shards that are unavailable.API name:
timeout
-
waitForActiveShards
@Nullable public jakarta.json.JsonValue 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 toall
for 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
@Nullable public java.lang.Boolean waitForCompletion()Should the request should block until the reindex is complete.API name:
wait_for_completion
-
requireAlias
@Nullable public java.lang.Boolean requireAlias()API name:require_alias
-
conflicts
API name:conflicts
-
dest
API name:dest
-
maxDocs
@Nullable public java.lang.Long maxDocs()API name:max_docs
-
script
@Nullable public jakarta.json.JsonValue script()API name:script
-
size
@Nullable public java.lang.Long size()API name:size
-
source
API name:source
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupReindexRequestDeserializer
protected static void setupReindexRequestDeserializer(DelegatingDeserializer<ReindexRequest.Builder> op)
-