public class BulkIndexByScrollResponse
extends org.elasticsearch.action.ActionResponse
implements org.elasticsearch.common.xcontent.ToXContent
| Constructor and Description |
|---|
BulkIndexByScrollResponse() |
BulkIndexByScrollResponse(org.elasticsearch.common.unit.TimeValue took,
BulkByScrollTask.Status status,
java.util.List<org.elasticsearch.action.bulk.BulkItemResponse.Failure> bulkFailures,
java.util.List<ScrollableHitSource.SearchFailure> searchFailures,
boolean timedOut) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBatches() |
java.util.List<org.elasticsearch.action.bulk.BulkItemResponse.Failure> |
getBulkFailures()
All of the bulk failures.
|
long |
getBulkRetries()
The number of times that the request had retry bulk actions.
|
long |
getCreated() |
long |
getDeleted() |
long |
getNoops() |
java.lang.String |
getReasonCancelled()
The reason that the request was canceled or null if it hasn't been.
|
java.util.List<ScrollableHitSource.SearchFailure> |
getSearchFailures()
All search failures.
|
long |
getSearchRetries()
The number of times that the request had retry search actions.
|
protected BulkByScrollTask.Status |
getStatus() |
org.elasticsearch.common.unit.TimeValue |
getTook() |
long |
getUpdated() |
long |
getVersionConflicts() |
boolean |
isTimedOut()
Did any of the sub-requests that were part of this request timeout?
|
void |
readFrom(org.elasticsearch.common.io.stream.StreamInput in) |
java.lang.String |
toString() |
org.elasticsearch.common.xcontent.XContentBuilder |
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
void |
writeTo(org.elasticsearch.common.io.stream.StreamOutput out) |
public BulkIndexByScrollResponse()
public BulkIndexByScrollResponse(org.elasticsearch.common.unit.TimeValue took,
BulkByScrollTask.Status status,
java.util.List<org.elasticsearch.action.bulk.BulkItemResponse.Failure> bulkFailures,
java.util.List<ScrollableHitSource.SearchFailure> searchFailures,
boolean timedOut)
public org.elasticsearch.common.unit.TimeValue getTook()
protected BulkByScrollTask.Status getStatus()
public long getCreated()
public long getDeleted()
public long getUpdated()
public int getBatches()
public long getVersionConflicts()
public long getNoops()
public java.lang.String getReasonCancelled()
public long getBulkRetries()
public long getSearchRetries()
public java.util.List<org.elasticsearch.action.bulk.BulkItemResponse.Failure> getBulkFailures()
public java.util.List<ScrollableHitSource.SearchFailure> getSearchFailures()
public boolean isTimedOut()
public void writeTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
writeTo in interface org.elasticsearch.common.io.stream.StreamablewriteTo in class org.elasticsearch.action.ActionResponsejava.io.IOExceptionpublic void readFrom(org.elasticsearch.common.io.stream.StreamInput in)
throws java.io.IOException
readFrom in interface org.elasticsearch.common.io.stream.StreamablereadFrom in class org.elasticsearch.action.ActionResponsejava.io.IOExceptionpublic org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
toXContent in interface org.elasticsearch.common.xcontent.ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object