Class DeleteByQueryResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DeleteByQueryResponse.Builder>
co.elastic.clients.elasticsearch.core.DeleteByQueryResponse.Builder
- All Implemented Interfaces:
WithJson<DeleteByQueryResponse.Builder>
,ObjectBuilder<DeleteByQueryResponse>
- Enclosing class:
- DeleteByQueryResponse
public static class DeleteByQueryResponse.Builder
extends WithJsonObjectBuilderBase<DeleteByQueryResponse.Builder>
implements ObjectBuilder<DeleteByQueryResponse>
Builder for
DeleteByQueryResponse
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe number of scroll responses pulled back by the delete by query.build()
Builds aDeleteByQueryResponse
.The number of documents that were successfully deleted.failures
(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) An array of failures if there were any unrecoverable errors during the process.An array of failures if there were any unrecoverable errors during the process.failures
(List<BulkIndexByScrollFailure> list) An array of failures if there were any unrecoverable errors during the process.This field is always equal to zero for delete by query.requestsPerSecond
(Float value) The number of requests per second effectively run during the delete by query.The number of retries attempted by delete by query.The number of retries attempted by delete by query.protected DeleteByQueryResponse.Builder
self()
API name:slice_id
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 a_delete_by_query
response.Iftrue
, some requests run during the delete by query operation timed out.The number of milliseconds from start to end of the whole operation.The number of documents that were successfully processed.versionConflicts
(Long value) The number of version conflicts that the delete 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 delete by query.API name:
batches
-
deleted
The number of documents that were successfully deleted.API name:
deleted
-
failures
An array of failures if there were any unrecoverable errors during the process. If this array is not empty, the request ended abnormally because of those failures. Delete by query is implemented using batches and any failures cause 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 on version conflicts.API name:
failures
Adds all elements of
list
tofailures
. -
failures
public final DeleteByQueryResponse.Builder failures(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) An array of failures if there were any unrecoverable errors during the process. If this array is not empty, the request ended abnormally because of those failures. Delete by query is implemented using batches and any failures cause 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 on version conflicts.API name:
failures
Adds one or more values to
failures
. -
failures
public final DeleteByQueryResponse.Builder failures(Function<BulkIndexByScrollFailure.Builder, ObjectBuilder<BulkIndexByScrollFailure>> fn) An array of failures if there were any unrecoverable errors during the process. If this array is not empty, the request ended abnormally because of those failures. Delete by query is implemented using batches and any failures cause 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 on version conflicts.API name:
failures
Adds a value to
failures
using a builder lambda. -
noops
This field is always equal to zero for delete by query. It exists only so that delete by query, update by query, and reindex APIs return responses with the same structure.API name:
noops
-
requestsPerSecond
The number of requests per second effectively run during the delete by query.API name:
requests_per_second
-
retries
The number of retries attempted by delete by query.bulk
is the number of bulk actions retried.search
is the number of search actions retried.API name:
retries
-
retries
public final DeleteByQueryResponse.Builder retries(Function<Retries.Builder, ObjectBuilder<Retries>> fn) The number of retries attempted by delete by query.bulk
is the number of bulk actions retried.search
is the number of search actions retried.API name:
retries
-
sliceId
API name:slice_id
-
task
API name:task
-
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 DeleteByQueryResponse.Builder throttledUntil(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:throttled_until
-
throttledUntilMillis
This field should always be equal to zero in a_delete_by_query
response. It has meaning only 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
-
timedOut
Iftrue
, some requests run during the delete by query operation timed out.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
-
versionConflicts
The number of version conflicts that the delete by query hit.API name:
version_conflicts
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DeleteByQueryResponse.Builder>
-
build
Builds aDeleteByQueryResponse
.- Specified by:
build
in interfaceObjectBuilder<DeleteByQueryResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-