Class ReindexResponse
java.lang.Object
org.springframework.data.elasticsearch.core.reindex.ReindexResponse
Response of reindex request. (@see
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html#docs-reindex-api-response-body)
- Since:
- 4.4
- Author:
- Sijia Liu
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a newReindexResponse.ReindexResponseBuilder
to buildReindexResponse
long
The number of scroll responses pulled back by the update by query.long
The number of times that the request had retry bulk actions.long
The number of documents that were successfully created.long
The number of documents that were successfully deleted.All of the bulk failures.long
getNoops()
The number of documents that were ignored because the script used for the update by query returned a noop value for ctx.op.double
The number of requests per second effectively executed during the reindex.long
The number of times that the request had retry search actions.long
Number of milliseconds the request slept to conform to requests_per_second.long
This field should always be equal to zero in a _reindex response.long
getTook()
The number of milliseconds from start to end of the whole operation.long
getTotal()
The number of documents that were successfully processed.long
The number of documents that were successfully updated.long
The number of version conflicts that the update by query hit.boolean
Did any of the sub-requests that were part of this request timeout?
-
Method Details
-
getTook
public long getTook()The number of milliseconds from start to end of the whole operation. -
isTimedOut
public boolean isTimedOut()Did any of the sub-requests that were part of this request timeout? -
getTotal
public long getTotal()The number of documents that were successfully processed. -
getCreated
public long getCreated()The number of documents that were successfully created. -
getUpdated
public long getUpdated()The number of documents that were successfully updated. -
getDeleted
public long getDeleted()The number of documents that were successfully deleted. -
getBatches
public long getBatches()The number of scroll responses pulled back by the update by query. -
getVersionConflicts
public long getVersionConflicts()The number of version conflicts that the update by query hit. -
getNoops
public long getNoops()The number of documents that were ignored because the script used for the update by query returned a noop value for ctx.op. -
getBulkRetries
public long getBulkRetries()The number of times that the request had retry bulk actions. -
getSearchRetries
public long getSearchRetries()The number of times that the request had retry search actions. -
getThrottledMillis
public long getThrottledMillis()Number of milliseconds the request slept to conform to requests_per_second. -
getRequestsPerSecond
public double getRequestsPerSecond()The number of requests per second effectively executed during the reindex. -
getThrottledUntilMillis
public long getThrottledUntilMillis()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 to requests_per_second. -
getFailures
All of the bulk failures. Version conflicts are only included if the request sets abortOnVersionConflict to true (the default). -
builder
Create a newReindexResponse.ReindexResponseBuilder
to buildReindexResponse
- Returns:
- a new
ReindexResponse.ReindexResponseBuilder
to buildReindexResponse
-