Class ByQueryResponse
java.lang.Object
org.springframework.data.elasticsearch.core.query.ByQueryResponse
Response of an update by query operation.
- Since:
- 4.2
- Author:
- Farid Faoudi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static class
static class
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Create a newByQueryResponse.ByQueryResponseBuilder
to buildByQueryResponse
int
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 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.The reason that the request was canceled or null if it hasn't been.Failures during search phaselong
The number of times that the request had retry search actions.boolean
Did any of the sub-requests that were part of this request timeout?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.
-
Method Details
-
getTook
public long getTook()The number of milliseconds from start to end of the whole operation. -
getTimedOut
public boolean getTimedOut()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. -
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 int 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. -
getReasonCancelled
The reason that the request was canceled or null if it hasn't been. -
getFailures
All of the bulk failures. Version conflicts are only included if the request sets abortOnVersionConflict to true (the default). -
getSearchFailures
Failures during search phase -
builder
Create a newByQueryResponse.ByQueryResponseBuilder
to buildByQueryResponse
- Returns:
- a new
ByQueryResponse.ByQueryResponseBuilder
to buildByQueryResponse
-