Class UpdateByQueryResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<UpdateByQueryResponse.Builder>
co.elastic.clients.elasticsearch.core.UpdateByQueryResponse.Builder
- All Implemented Interfaces:
WithJson<UpdateByQueryResponse.Builder>
,ObjectBuilder<UpdateByQueryResponse>
- Enclosing class:
- UpdateByQueryResponse
public static class UpdateByQueryResponse.Builder
extends WithJsonObjectBuilderBase<UpdateByQueryResponse.Builder>
implements ObjectBuilder<UpdateByQueryResponse>
Builder for
UpdateByQueryResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe number of scroll responses pulled back by the update by query.build()
Builds aUpdateByQueryResponse
.The number of documents that were successfully deleted.failures
(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) Array of failures if there were any unrecoverable errors during the process.Array of failures if there were any unrecoverable errors during the process.failures
(List<BulkIndexByScrollFailure> list) Array of failures if there were any unrecoverable errors during the process.The number of documents that were ignored because the script used for the update by query returned a noop value forctx.op
.requestsPerSecond
(Float value) The number of requests per second effectively run during the update by query.The number of retries attempted by update by query.The number of retries attempted by update by query.protected UpdateByQueryResponse.Builder
self()
API name:task
API name:throttled
API name:throttled
throttledMillis
(Long value) The number of milliseconds the request slept to conform torequests_per_second
.throttledUntil
(Time value) API name:throttled_until
API name:throttled_until
throttledUntilMillis
(Long value) This field should always be equal to zero in an _update_by_query response.If true, some requests timed out during the update by query.The number of milliseconds from start to end of the whole operation.The number of documents that were successfully processed.The number of documents that were successfully updated.versionConflicts
(Long value) The number of version conflicts that the update by query hit.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 pulled back by the update by query.API name:
batches
-
failures
Array of failures if there were any unrecoverable errors during the process. If this is non-empty then the request ended because of those failures. Update by query is implemented using batches. 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 reindex from ending when version conflicts occur.API name:
failures
Adds all elements of
list
tofailures
. -
failures
public final UpdateByQueryResponse.Builder failures(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) Array of failures if there were any unrecoverable errors during the process. If this is non-empty then the request ended because of those failures. Update by query is implemented using batches. 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 reindex from ending when version conflicts occur.API name:
failures
Adds one or more values to
failures
. -
failures
public final UpdateByQueryResponse.Builder failures(Function<BulkIndexByScrollFailure.Builder, ObjectBuilder<BulkIndexByScrollFailure>> fn) Array of failures if there were any unrecoverable errors during the process. If this is non-empty then the request ended because of those failures. Update by query is implemented using batches. 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 reindex from ending when version conflicts occur.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 update by query returned a noop value forctx.op
.API name:
noops
-
deleted
The number of documents that were successfully deleted.API name:
deleted
-
requestsPerSecond
The number of requests per second effectively run during the update by query.API name:
requests_per_second
-
retries
The number of retries attempted by update by query.bulk
is the number of bulk actions retried.search
is the number of search actions retried.API name:
retries
-
retries
public final UpdateByQueryResponse.Builder retries(Function<Retries.Builder, ObjectBuilder<Retries>> fn) The number of retries attempted by update by query.bulk
is the number of bulk actions retried.search
is the number of search actions retried.API name:
retries
-
task
API name:task
-
timedOut
If true, some requests timed out during the update by query.API name:
timed_out
-
took
The number of milliseconds from start to end of the whole operation.API name:
took
-
total
The number of documents that were successfully processed.API name:
total
-
updated
The number of documents that were successfully updated.API name:
updated
-
versionConflicts
The number of version conflicts that the update by query hit.API name:
version_conflicts
-
throttled
API name:throttled
-
throttled
API name:throttled
-
throttledMillis
The number of milliseconds the request slept to conform torequests_per_second
.API name:
throttled_millis
-
throttledUntil
API name:throttled_until
-
throttledUntil
public final UpdateByQueryResponse.Builder throttledUntil(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:throttled_until
-
throttledUntilMillis
This field should always be equal to zero in an _update_by_query response. It only has meaning when using the task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be run again in order to conform torequests_per_second
.API name:
throttled_until_millis
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<UpdateByQueryResponse.Builder>
-
build
Builds aUpdateByQueryResponse
.- Specified by:
build
in interfaceObjectBuilder<UpdateByQueryResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-