Class DeleteByQueryResponse
java.lang.Object
co.elastic.clients.elasticsearch.core.DeleteByQueryResponse
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DeleteByQueryResponse>
Json deserializer forDeleteByQueryResponse
-
Method Summary
Modifier and TypeMethodDescriptionfinal Long
batches()
The number of scroll responses pulled back by the delete by query.final Long
deleted()
The number of documents that were successfully deleted.final List<BulkIndexByScrollFailure>
failures()
An array of failures if there were any unrecoverable errors during the process.final Long
noops()
This field is always equal to zero for delete by query.static DeleteByQueryResponse
final Float
The number of requests per second effectively run during the delete by query.final Retries
retries()
The number of retries attempted by delete by query.void
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
final Integer
sliceId()
API name:slice_id
final String
task()
API name:task
final Time
API name:throttled
final Long
The number of milliseconds the request slept to conform torequests_per_second
.final Time
API name:throttled_until
final Long
This field should always be equal to zero in a_delete_by_query
response.final Boolean
timedOut()
Iftrue
, some requests run during the delete by query operation timed out.final Long
took()
The number of milliseconds from start to end of the whole operation.toString()
final Long
total()
The number of documents that were successfully processed.final Long
The number of version conflicts that the delete by query hit.
-
Field Details
-
_DESERIALIZER
Json deserializer forDeleteByQueryResponse
-
-
Method Details
-
of
public static DeleteByQueryResponse of(Function<DeleteByQueryResponse.Builder, ObjectBuilder<DeleteByQueryResponse>> fn) -
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
-
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
-
sliceId
API name:slice_id
-
task
API name:task
-
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
-
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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDeleteByQueryResponseDeserializer
protected static void setupDeleteByQueryResponseDeserializer(ObjectDeserializer<DeleteByQueryResponse.Builder> op)
-