Class ReindexTaskResult
java.lang.Object
co.elastic.clients.elasticsearch._types.ReindexTaskResult
- All Implemented Interfaces:
JsonpSerializable
The final result of a completed reindex operation, as stored in the task
result. This is the serialized form of
BulkByScrollResponse.- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ReindexTaskResult>Json deserializer forReindexTaskResult -
Method Summary
Modifier and TypeMethodDescriptionfinal Longbatches()The number of scroll responses pulled back by the reindex.final Longcreated()The number of documents that were successfully created.final Longdeleted()The number of documents that were successfully deleted.final List<BulkIndexByScrollFailure>failures()Any failures encountered during the reindex.final Longnoops()The number of documents that were ignored because the script returned anoopvalue forctx.op.static ReindexTaskResultrebuild()final FloatThe number of requests per second effectively executed during the reindex.final Retriesretries()The number of retries attempted by reindex.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal LongNumber of milliseconds the request slept to conform torequests_per_second.final LongThis field should always be equal to zero in a completed reindex result.final BooleantimedOut()Whether any of the requests executed during the reindex timed out.final Longtook()The total milliseconds the entire operation took.toString()final Longtotal()The number of documents that were successfully processed.final Longupdated()The number of documents that were successfully updated.final LongThe number of version conflicts that occurred.
-
Field Details
-
_DESERIALIZER
Json deserializer forReindexTaskResult
-
-
Method Details
-
of
public static ReindexTaskResult of(Function<ReindexTaskResult.Builder, ObjectBuilder<ReindexTaskResult>> fn) -
batches
The number of scroll responses pulled back by the reindex.API name:
batches -
created
The number of documents that were successfully created.API name:
created -
deleted
The number of documents that were successfully deleted.API name:
deleted -
failures
Any failures encountered during the reindex. If non-empty, the reindex ended because of these failures.API name:
failures -
noops
The number of documents that were ignored because the script returned anoopvalue forctx.op.API name:
noops -
requestsPerSecond
The number of requests per second effectively executed during the reindex.API name:
requests_per_second -
retries
The number of retries attempted by reindex.API name:
retries -
throttledMillis
Number of milliseconds the request slept to conform torequests_per_second.API name:
throttled_millis -
throttledUntilMillis
This field should always be equal to zero in a completed reindex result.API name:
throttled_until_millis -
timedOut
Whether any of the requests executed during the reindex timed out.API name:
timed_out -
took
The total milliseconds the entire operation took.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 occurred.API name:
version_conflicts -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
ReindexTaskResult.Builderinitialized with field values of this instance
-
setupReindexTaskResultDeserializer
protected static void setupReindexTaskResultDeserializer(ObjectDeserializer<ReindexTaskResult.Builder> op)
-