Class ReindexStatus.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ReindexStatus.Builder>
co.elastic.clients.elasticsearch.core.reindex_rethrottle.ReindexStatus.Builder
- All Implemented Interfaces:
WithJson<ReindexStatus.Builder>
,ObjectBuilder<ReindexStatus>
- Enclosing class:
- ReindexStatus
public static class ReindexStatus.Builder
extends WithJsonObjectBuilderBase<ReindexStatus.Builder>
implements ObjectBuilder<ReindexStatus>
Builder for
ReindexStatus
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ReindexStatus.Builder
batches
(long value) Required - The number of scroll responses pulled back by the reindex.build()
Builds aReindexStatus
.final ReindexStatus.Builder
created
(long value) Required - The number of documents that were successfully created.final ReindexStatus.Builder
deleted
(long value) Required - The number of documents that were successfully deleted.final ReindexStatus.Builder
noops
(long value) Required - The number of documents that were ignored because the script used for the reindex returned anoop
value forctx.op
.final ReindexStatus.Builder
requestsPerSecond
(float value) Required - The number of requests per second effectively executed during the reindex.final ReindexStatus.Builder
Required - The number of retries attempted by reindex.final ReindexStatus.Builder
Required - The number of retries attempted by reindex.protected ReindexStatus.Builder
self()
final ReindexStatus.Builder
API name:throttled
final ReindexStatus.Builder
API name:throttled
final ReindexStatus.Builder
throttledMillis
(long value) Required - Number of milliseconds the request slept to conform torequests_per_second
.final ReindexStatus.Builder
throttledUntil
(Time value) API name:throttled_until
final ReindexStatus.Builder
API name:throttled_until
final ReindexStatus.Builder
throttledUntilMillis
(long value) Required - This field should always be equal to zero in a_reindex
response.final ReindexStatus.Builder
total
(long value) Required - The number of documents that were successfully processed.final ReindexStatus.Builder
updated
(long value) Required - The number of documents that were successfully updated, for example, a document with same ID already existed prior to reindex updating it.final ReindexStatus.Builder
versionConflicts
(long value) Required - The number of version conflicts that reindex hits.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
batches
Required - The number of scroll responses pulled back by the reindex.API name:
batches
-
created
Required - 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 anoop
value 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.bulk
is the number of bulk actions retried andsearch
is the number of search actions retried.API name:
retries
-
retries
Required - The number of retries attempted by reindex.bulk
is the number of bulk actions retried andsearch
is 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
API name:throttled_until
-
throttledUntilMillis
Required - This field should always be equal to zero in a_reindex
response. 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
Required - 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ReindexStatus.Builder>
-
build
Builds aReindexStatus
.- Specified by:
build
in interfaceObjectBuilder<ReindexStatus>
- Throws:
NullPointerException
- if some of the required fields are null.
-