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 SummaryConstructors
- 
Method SummaryModifier 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.Builderself()API name:slice_idAPI name:taskAPI name:throttledAPI name:throttledthrottledMillis(Long value) The number of milliseconds the request slept to conform torequests_per_second.throttledUntil(Time value) API name:throttled_untilAPI name:throttled_untilthrottledUntilMillis(Long value) This field should always be equal to zero in a_delete_by_queryresponse.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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
batchesThe number of scroll responses pulled back by the delete by query.API name: batches
- 
deletedThe number of documents that were successfully deleted.API name: deleted
- 
failuresAn 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 theconflictsoption to prevent reindex from ending on version conflicts.API name: failuresAdds all elements of listtofailures.
- 
failurespublic 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 theconflictsoption to prevent reindex from ending on version conflicts.API name: failuresAdds one or more values to failures.
- 
failurespublic 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 theconflictsoption to prevent reindex from ending on version conflicts.API name: failuresAdds a value to failuresusing a builder lambda.
- 
noopsThis 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
- 
requestsPerSecondThe number of requests per second effectively run during the delete by query.API name: requests_per_second
- 
retriesThe number of retries attempted by delete by query.bulkis the number of bulk actions retried.searchis the number of search actions retried.API name: retries
- 
retriespublic final DeleteByQueryResponse.Builder retries(Function<Retries.Builder, ObjectBuilder<Retries>> fn) The number of retries attempted by delete by query.bulkis the number of bulk actions retried.searchis the number of search actions retried.API name: retries
- 
sliceIdAPI name:slice_id
- 
taskAPI name:task
- 
throttledAPI name:throttled
- 
throttledAPI name:throttled
- 
throttledMillisThe number of milliseconds the request slept to conform torequests_per_second.API name: throttled_millis
- 
throttledUntilAPI name:throttled_until
- 
throttledUntilpublic final DeleteByQueryResponse.Builder throttledUntil(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:throttled_until
- 
throttledUntilMillisThis field should always be equal to zero in a_delete_by_queryresponse. 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
- 
timedOutIftrue, some requests run during the delete by query operation timed out.API name: timed_out
- 
tookThe number of milliseconds from start to end of the whole operation.API name: took
- 
totalThe number of documents that were successfully processed.API name: total
- 
versionConflictsThe number of version conflicts that the delete by query hit.API name: version_conflicts
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<DeleteByQueryResponse.Builder>
 
- 
buildBuilds aDeleteByQueryResponse.- Specified by:
- buildin interface- ObjectBuilder<DeleteByQueryResponse>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-