Class ReindexResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReindexResponse.Builder>
co.elastic.clients.elasticsearch.core.ReindexResponse.Builder
- All Implemented Interfaces:
WithJson<ReindexResponse.Builder>
,ObjectBuilder<ReindexResponse>
- Enclosing class:
- ReindexResponse
public static class ReindexResponse.Builder
extends WithJsonObjectBuilderBase<ReindexResponse.Builder>
implements ObjectBuilder<ReindexResponse>
Builder for
ReindexResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ReindexResponse.Builder
The number of scroll responses that were pulled back by the reindex.build()
Builds aReindexResponse
.final ReindexResponse.Builder
The number of documents that were successfully created.final ReindexResponse.Builder
The number of documents that were successfully deleted.final ReindexResponse.Builder
failures
(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) If there were any unrecoverable errors during the process, it is an array of those failures.final ReindexResponse.Builder
If there were any unrecoverable errors during the process, it is an array of those failures.final ReindexResponse.Builder
failures
(List<BulkIndexByScrollFailure> list) If there were any unrecoverable errors during the process, it is an array of those failures.final ReindexResponse.Builder
The number of documents that were ignored because the script used for the reindex returned anoop
value forctx.op
.final ReindexResponse.Builder
requestsPerSecond
(Float value) The number of requests per second effectively run during the reindex.final ReindexResponse.Builder
The number of retries attempted by reindex.final ReindexResponse.Builder
The number of retries attempted by reindex.protected ReindexResponse.Builder
self()
final ReindexResponse.Builder
API name:slice_id
final ReindexResponse.Builder
API name:task
final ReindexResponse.Builder
throttledMillis
(Long value) The number of milliseconds the request slept to conform torequests_per_second
.final ReindexResponse.Builder
throttledUntilMillis
(Long value) This field should always be equal to zero in a reindex response.final ReindexResponse.Builder
If any of the requests that ran during the reindex timed out, it istrue
.final ReindexResponse.Builder
The total milliseconds the entire operation took.final ReindexResponse.Builder
The number of documents that were successfully processed.final ReindexResponse.Builder
The number of documents that were successfully updated.final ReindexResponse.Builder
versionConflicts
(Long value) The number of version conflicts that occurred.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batches
The number of scroll responses that were pulled back by the reindex.API name:
batches
-
created
The number of documents that were successfully created.API name:
created
-
deleted
The number of documents that were successfully deleted.API name:
deleted
-
failures
If there were any unrecoverable errors during the process, it is an array of those failures. If this array is not empty, the request ended because of those failures. Reindex is implemented using batches and any failure causes the entire process to end but all failures in the current batch are collected into the array. You can use theconflicts
option to prevent the reindex from ending on version conflicts.API name:
failures
Adds all elements of
list
tofailures
. -
failures
public final ReindexResponse.Builder failures(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) If there were any unrecoverable errors during the process, it is an array of those failures. If this array is not empty, the request ended because of those failures. Reindex is implemented using batches and any failure causes the entire process to end but all failures in the current batch are collected into the array. You can use theconflicts
option to prevent the reindex from ending on version conflicts.API name:
failures
Adds one or more values to
failures
. -
failures
public final ReindexResponse.Builder failures(Function<BulkIndexByScrollFailure.Builder, ObjectBuilder<BulkIndexByScrollFailure>> fn) If there were any unrecoverable errors during the process, it is an array of those failures. If this array is not empty, the request ended because of those failures. Reindex is implemented using batches and any failure causes the entire process to end but all failures in the current batch are collected into the array. You can use theconflicts
option to prevent the reindex from ending on version conflicts.API name:
failures
Adds a value to
failures
using a builder lambda. -
noops
The number of documents that were ignored because the script used for the reindex returned anoop
value forctx.op
.API name:
noops
-
retries
The number of retries attempted by reindex.API name:
retries
-
retries
The number of retries attempted by reindex.API name:
retries
-
requestsPerSecond
The number of requests per second effectively run during the reindex.API name:
requests_per_second
-
sliceId
API name:slice_id
-
task
API name:task
-
throttledMillis
The number of milliseconds the request slept to conform torequests_per_second
.API name:
throttled_millis
-
throttledUntilMillis
This field should always be equal to zero in a reindex response. It has meaning only when using the task API, where it indicates the next time (in milliseconds since epoch) that a throttled request will be run again in order to conform torequests_per_second
.API name:
throttled_until_millis
-
timedOut
If any of the requests that ran during the reindex timed out, it istrue
.API name:
timed_out
-
took
The total milliseconds the entire operation took.API name:
took
-
total
The number of documents that were successfully processed.API name:
total
-
updated
The number of documents that were successfully updated. That is to say, a document with the same ID already existed before the reindex updated it.API name:
updated
-
versionConflicts
The number of version conflicts that occurred.API name:
version_conflicts
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ReindexResponse.Builder>
-
build
Builds aReindexResponse
.- Specified by:
build
in interfaceObjectBuilder<ReindexResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-