Class ReindexResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.ReindexResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<ReindexResponse.Builder,,ReindexResponse> MutableBuilder<ReindexResponse.Builder,,ReindexResponse> ObjectBuilder<ReindexResponse>
- Enclosing class:
ReindexResponse
public static class ReindexResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ReindexResponse.Builder,ReindexResponse>
Builder for
ReindexResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ReindexResponse.BuilderThe number of scroll responses pulled back by the reindex operation.build()Builds aReindexResponse.final ReindexResponse.BuilderAPI name:canceledcopy()Create a new builderCopyableBuilderthat is a copy of this one.final ReindexResponse.BuilderThe number of documents that were successfully created.final ReindexResponse.BuilderThe number of documents that were successfully deleted.final ReindexResponse.BuilderThe list of failures that occurred during the operation.final ReindexResponse.Builderfailures(List<BulkByScrollFailure> list) The list of failures that occurred during the operation.final ReindexResponse.Builderfailures(BulkByScrollFailure value, BulkByScrollFailure... values) The list of failures that occurred during the operation.final ReindexResponse.BuilderThe number of documents that were ignored.final ReindexResponse.BuilderrequestsPerSecond(Float value) The number of requests per second effectively executed during the reindex operation.final ReindexResponse.BuilderAPI name:retriesfinal ReindexResponse.BuilderAPI name:retriesfinal ReindexResponse.BuilderAPI name:slice_idfinal ReindexResponse.Builderslices(Function<BulkByScrollTaskStatusOrException.Builder, ObjectBuilder<BulkByScrollTaskStatusOrException>> fn) API name:slicesfinal ReindexResponse.BuilderAPI name:slicesfinal ReindexResponse.Builderslices(BulkByScrollTaskStatusOrException value, BulkByScrollTaskStatusOrException... values) API name:slicesfinal ReindexResponse.BuilderAPI name:taskfinal ReindexResponse.BuilderAPI name:throttledfinal ReindexResponse.BuilderAPI name:throttledfinal ReindexResponse.BuilderthrottledMillis(Long value) API name:throttled_millisfinal ReindexResponse.BuilderThe amount time before the throttling will end.final ReindexResponse.BuilderthrottledUntil(Time value) The amount time before the throttling will end.final ReindexResponse.BuilderthrottledUntilMillis(Long value) When the throttling will end in milliseconds.final ReindexResponse.BuilderWhether the operation timed out.final ReindexResponse.BuilderThe time taken by the operation in milliseconds.final ReindexResponse.BuilderThe number of documents that were successfully processed.final ReindexResponse.BuilderThe number of documents that were successfully updated after the reindex operation.final ReindexResponse.BuilderversionConflicts(Long value) The number of version conflicts encountered by the reindex operation.Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ReindexResponse.Builder,ReindexResponse> - Returns:
- a new builder instance.
-
batches
The number of scroll responses pulled back by the reindex operation.API name:
batches -
canceled
API name:canceled -
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
The list of failures that occurred during the operation.API name:
failuresAdds all elements of
listtofailures. -
failures
@Nonnull public final ReindexResponse.Builder failures(BulkByScrollFailure value, BulkByScrollFailure... values) The list of failures that occurred during the operation.API name:
failuresAdds one or more values to
failures. -
failures
@Nonnull public final ReindexResponse.Builder failures(Function<BulkByScrollFailure.Builder, ObjectBuilder<BulkByScrollFailure>> fn) The list of failures that occurred during the operation.API name:
failuresAdds a value to
failuresusing a builder lambda. -
noops
The number of documents that were ignored.API name:
noops -
requestsPerSecond
The number of requests per second effectively executed during the reindex operation.API name:
requests_per_second -
retries
API name:retries -
retries
@Nonnull public final ReindexResponse.Builder retries(Function<Retries.Builder, ObjectBuilder<Retries>> fn) API name:retries -
sliceId
API name:slice_id -
slices
API name:slicesAdds all elements of
listtoslices. -
slices
@Nonnull public final ReindexResponse.Builder slices(BulkByScrollTaskStatusOrException value, BulkByScrollTaskStatusOrException... values) API name:slicesAdds one or more values to
slices. -
slices
@Nonnull public final ReindexResponse.Builder slices(Function<BulkByScrollTaskStatusOrException.Builder, ObjectBuilder<BulkByScrollTaskStatusOrException>> fn) API name:slicesAdds a value to
slicesusing a builder lambda. -
task
API name:task -
throttled
API name:throttled -
throttled
@Nonnull public final ReindexResponse.Builder throttled(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:throttled -
throttledMillis
API name:throttled_millis -
throttledUntil
The amount time before the throttling will end.API name:
throttled_until -
throttledUntil
@Nonnull public final ReindexResponse.Builder throttledUntil(Function<Time.Builder, ObjectBuilder<Time>> fn) The amount time before the throttling will end.API name:
throttled_until -
throttledUntilMillis
When the throttling will end in milliseconds.API name:
throttled_until_millis -
timedOut
Whether the operation timed out.API name:
timed_out -
took
The time taken by the operation in milliseconds.API name:
took -
total
The number of documents that were successfully processed.API name:
total -
updated
The number of documents that were successfully updated after the reindex operation.API name:
updated -
versionConflicts
The number of version conflicts encountered by the reindex operation.API name:
version_conflicts -
build
Builds aReindexResponse.- Specified by:
buildin interfaceObjectBuilder<ReindexResponse>- Throws:
NullPointerException- if some of the required fields are null.
-