Class UpdateByQueryResponse
java.lang.Object
co.elastic.clients.elasticsearch.core.UpdateByQueryResponse
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateByQueryResponse>
Json deserializer forUpdateByQueryResponse
-
Method Summary
Modifier and TypeMethodDescriptionfinal Long
batches()
The number of scroll responses pulled back by the update by query.final Long
deleted()
The number of documents that were successfully deleted.final List<BulkIndexByScrollFailure>
failures()
Array of failures if there were any unrecoverable errors during the process.final Long
noops()
The number of documents that were ignored because the script used for the update by query returned a noop value forctx.op
.static UpdateByQueryResponse
final Float
The number of requests per second effectively run during the update by query.final Retries
retries()
The number of retries attempted by update 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 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 an _update_by_query response.final Boolean
timedOut()
If true, some requests timed out during the update by query.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
updated()
The number of documents that were successfully updated.final Long
The number of version conflicts that the update by query hit.
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateByQueryResponse
-
-
Method Details
-
of
public static UpdateByQueryResponse of(Function<UpdateByQueryResponse.Builder, ObjectBuilder<UpdateByQueryResponse>> fn) -
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
-
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
-
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
-
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 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
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupUpdateByQueryResponseDeserializer
protected static void setupUpdateByQueryResponseDeserializer(ObjectDeserializer<UpdateByQueryResponse.Builder> op)
-