Class ReindexResponse
java.lang.Object
co.elastic.clients.elasticsearch.core.ReindexResponse
- All Implemented Interfaces:
- JsonpSerializable
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ReindexResponse>Json deserializer forReindexResponse
- 
Method SummaryModifier and TypeMethodDescriptionfinal Longbatches()The number of scroll responses that were 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()If there were any unrecoverable errors during the process, it is an array of those failures.final Longnoops()The number of documents that were ignored because the script used for the reindex returned anoopvalue forctx.op.static ReindexResponsefinal FloatThe number of requests per second effectively run 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 IntegersliceId()API name:slice_idfinal Stringtask()API name:taskfinal LongThe number of milliseconds the request slept to conform torequests_per_second.final LongThis field should always be equal to zero in a reindex response.final BooleantimedOut()If any of the requests that ran during the reindex timed out, it istrue.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- 
_DESERIALIZERJson deserializer forReindexResponse
 
- 
- 
Method Details- 
ofpublic static ReindexResponse of(Function<ReindexResponse.Builder, ObjectBuilder<ReindexResponse>> fn) 
- 
batchesThe number of scroll responses that were pulled back by the reindex.API name: batches
- 
createdThe number of documents that were successfully created.API name: created
- 
deletedThe number of documents that were successfully deleted.API name: deleted
- 
failuresIf there were any unrecoverable errors during the process, it is an array of those failures. If this array is not empty, the request ended because of those failures. Reindex is implemented using batches and any failure causes the entire process to end but all failures in the current batch are collected into the array. You can use theconflictsoption to prevent the reindex from ending on version conflicts.API name: failures
- 
noopsThe number of documents that were ignored because the script used for the reindex returned anoopvalue forctx.op.API name: noops
- 
retriesThe number of retries attempted by reindex.API name: retries
- 
requestsPerSecondThe number of requests per second effectively run during the reindex.API name: requests_per_second
- 
sliceIdAPI name:slice_id
- 
taskAPI name:task
- 
throttledMillisThe number of milliseconds the request slept to conform torequests_per_second.API name: throttled_millis
- 
throttledUntilMillisThis field should always be equal to zero in a reindex response. It has meaning only when using the task API, where it indicates the next time (in milliseconds since epoch) that a throttled request will be run again in order to conform torequests_per_second.API name: throttled_until_millis
- 
timedOutIf any of the requests that ran during the reindex timed out, it istrue.API name: timed_out
- 
tookThe total milliseconds the entire operation took.API name: took
- 
totalThe number of documents that were successfully processed.API name: total
- 
updatedThe number of documents that were successfully updated. That is to say, a document with the same ID already existed before the reindex updated it.API name: updated
- 
versionConflictsThe number of version conflicts that occurred.API name: version_conflicts
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
toString
- 
setupReindexResponseDeserializerprotected static void setupReindexResponseDeserializer(ObjectDeserializer<ReindexResponse.Builder> op) 
 
-