Class ParentReindexStatus.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ParentReindexStatus.Builder>
co.elastic.clients.elasticsearch.core.reindex_rethrottle.ParentReindexStatus.Builder
- All Implemented Interfaces:
WithJson<ParentReindexStatus.Builder>,ObjectBuilder<ParentReindexStatus>
- Enclosing class:
- ParentReindexStatus
public static class ParentReindexStatus.Builder
extends WithJsonObjectBuilderBase<ParentReindexStatus.Builder>
implements ObjectBuilder<ParentReindexStatus>
Builder for
ParentReindexStatus.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatches(long value) Required - The number of scroll responses pulled back by the reindex.build()Builds aParentReindexStatus.The reason for cancellation if the slice was canceledThe number of documents that were successfully created.deleted(long value) Required - The number of documents that were successfully deleted.noops(long value) Required - The number of documents that were ignored because the script used for the reindex returned anoopvalue forctx.op.requestsPerSecond(float value) Required - The number of requests per second effectively executed during the reindex.Required - The number of retries attempted by reindex.Required - The number of retries attempted by reindex.protected ParentReindexStatus.Builderself()The slice IDslices(ReindexStatus value, ReindexStatus... values) API name:slicesAPI name:slicesslices(List<ReindexStatus> list) API name:slicesAPI name:throttledAPI name:throttledthrottledMillis(long value) Required - Number of milliseconds the request slept to conform torequests_per_second.throttledUntil(Time value) API name:throttled_untilAPI name:throttled_untilthrottledUntilMillis(long value) Required - This field should always be equal to zero in a_reindexresponse.total(long value) Required - The number of documents that were successfully processed.The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it.versionConflicts(long value) Required - The number of version conflicts that reindex hits.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
-
slices
API name:slicesAdds all elements of
listtoslices. -
slices
API name:slicesAdds one or more values to
slices. -
slices
public final ParentReindexStatus.Builder slices(Function<ReindexStatus.Builder, ObjectBuilder<ReindexStatus>> fn) API name:slicesAdds a value to
slicesusing a builder lambda. -
sliceId
The slice IDAPI name:
slice_id -
batches
Required - 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
Required - The number of documents that were successfully deleted.API name:
deleted -
noops
Required - The number of documents that were ignored because the script used for the reindex returned anoopvalue forctx.op.API name:
noops -
requestsPerSecond
Required - The number of requests per second effectively executed during the reindex.API name:
requests_per_second -
retries
Required - The number of retries attempted by reindex.bulkis the number of bulk actions retried andsearchis the number of search actions retried.API name:
retries -
retries
public final ParentReindexStatus.Builder retries(Function<Retries.Builder, ObjectBuilder<Retries>> fn) Required - The number of retries attempted by reindex.bulkis the number of bulk actions retried andsearchis the number of search actions retried.API name:
retries -
throttled
API name:throttled -
throttled
API name:throttled -
throttledMillis
Required - Number of milliseconds the request slept to conform torequests_per_second.API name:
throttled_millis -
throttledUntil
API name:throttled_until -
throttledUntil
public final ParentReindexStatus.Builder throttledUntil(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:throttled_until -
throttledUntilMillis
Required - This field should always be equal to zero in a_reindexresponse. It only has meaning when using the Task API, where it indicates the next time (in milliseconds since epoch) a throttled request will be executed again in order to conform torequests_per_second.API name:
throttled_until_millis -
total
Required - The number of documents that were successfully processed.API name:
total -
updated
The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it.API name:
updated -
versionConflicts
Required - The number of version conflicts that reindex hits.API name:
version_conflicts -
cancelled
The reason for cancellation if the slice was canceledAPI name:
cancelled -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ParentReindexStatus.Builder>
-
build
Builds aParentReindexStatus.- Specified by:
buildin interfaceObjectBuilder<ParentReindexStatus>- Throws:
NullPointerException- if some of the required fields are null.
-