Class ReindexTaskResult

java.lang.Object
co.elastic.clients.elasticsearch._types.ReindexTaskResult
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class ReindexTaskResult extends Object implements JsonpSerializable
The final result of a completed reindex operation, as stored in the task result. This is the serialized form of BulkByScrollResponse.
See Also:
  • Field Details

  • Method Details

    • of

    • batches

      @Nullable public final Long batches()
      The number of scroll responses pulled back by the reindex.

      API name: batches

    • created

      @Nullable public final Long created()
      The number of documents that were successfully created.

      API name: created

    • deleted

      @Nullable public final Long deleted()
      The number of documents that were successfully deleted.

      API name: deleted

    • failures

      public final List<BulkIndexByScrollFailure> failures()
      Any failures encountered during the reindex. If non-empty, the reindex ended because of these failures.

      API name: failures

    • noops

      @Nullable public final Long noops()
      The number of documents that were ignored because the script returned a noop value for ctx.op.

      API name: noops

    • requestsPerSecond

      @Nullable public final Float requestsPerSecond()
      The number of requests per second effectively executed during the reindex.

      API name: requests_per_second

    • retries

      @Nullable public final Retries retries()
      The number of retries attempted by reindex.

      API name: retries

    • throttledMillis

      @Nullable public final Long throttledMillis()
      Number of milliseconds the request slept to conform to requests_per_second.

      API name: throttled_millis

    • throttledUntilMillis

      @Nullable public final Long throttledUntilMillis()
      This field should always be equal to zero in a completed reindex result.

      API name: throttled_until_millis

    • timedOut

      @Nullable public final Boolean timedOut()
      Whether any of the requests executed during the reindex timed out.

      API name: timed_out

    • took

      @Nullable public final Long took()
      The total milliseconds the entire operation took.

      API name: took

    • total

      @Nullable public final Long total()
      The number of documents that were successfully processed.

      API name: total

    • updated

      @Nullable public final Long updated()
      The number of documents that were successfully updated.

      API name: updated

    • versionConflicts

      @Nullable public final Long versionConflicts()
      The number of version conflicts that occurred.

      API name: version_conflicts

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • rebuild

      public ReindexTaskResult.Builder rebuild()
      Returns:
      New ReindexTaskResult.Builder initialized with field values of this instance
    • setupReindexTaskResultDeserializer

      protected static void setupReindexTaskResultDeserializer(ObjectDeserializer<ReindexTaskResult.Builder> op)