Class ReindexTaskResult.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReindexTaskResult.Builder>
co.elastic.clients.elasticsearch._types.ReindexTaskResult.Builder
- All Implemented Interfaces:
WithJson<ReindexTaskResult.Builder>,ObjectBuilder<ReindexTaskResult>
- Enclosing class:
- ReindexTaskResult
public static class ReindexTaskResult.Builder
extends WithJsonObjectBuilderBase<ReindexTaskResult.Builder>
implements ObjectBuilder<ReindexTaskResult>
Builder for
ReindexTaskResult.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe number of scroll responses pulled back by the reindex.build()Builds aReindexTaskResult.The number of documents that were successfully created.The number of documents that were successfully deleted.failures(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) Any failures encountered during the reindex.Any failures encountered during the reindex.failures(List<BulkIndexByScrollFailure> list) Any failures encountered during the reindex.The number of documents that were ignored because the script returned anoopvalue forctx.op.requestsPerSecond(Float value) The number of requests per second effectively executed during the reindex.The number of retries attempted by reindex.The number of retries attempted by reindex.protected ReindexTaskResult.Builderself()throttledMillis(Long value) Number of milliseconds the request slept to conform torequests_per_second.throttledUntilMillis(Long value) This field should always be equal to zero in a completed reindex result.Whether any of the requests executed during the reindex timed out.The total milliseconds the entire operation took.The number of documents that were successfully processed.The number of documents that were successfully updated.versionConflicts(Long value) The number of version conflicts that occurred.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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:
failuresAdds all elements of
listtofailures. -
failures
public final ReindexTaskResult.Builder failures(BulkIndexByScrollFailure value, BulkIndexByScrollFailure... values) Any failures encountered during the reindex. If non-empty, the reindex ended because of these failures.API name:
failuresAdds one or more values to
failures. -
failures
public final ReindexTaskResult.Builder failures(Function<BulkIndexByScrollFailure.Builder, ObjectBuilder<BulkIndexByScrollFailure>> fn) Any failures encountered during the reindex. If non-empty, the reindex ended because of these failures.API name:
failuresAdds a value to
failuresusing a builder lambda. -
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 -
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ReindexTaskResult.Builder>
-
build
Builds aReindexTaskResult.- Specified by:
buildin interfaceObjectBuilder<ReindexTaskResult>- Throws:
NullPointerException- if some of the required fields are null.
-