public class BulkByScrollResponse extends ActionResponse implements ToXContentFragment
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
BulkByScrollResponse() |
BulkByScrollResponse(java.lang.Iterable<BulkByScrollResponse> toMerge,
java.lang.String reasonCancelled) |
BulkByScrollResponse(TimeValue took,
BulkByScrollTask.Status status,
java.util.List<BulkItemResponse.Failure> bulkFailures,
java.util.List<ScrollableHitSource.SearchFailure> searchFailures,
boolean timedOut) |
| Modifier and Type | Method and Description |
|---|---|
int |
getBatches() |
java.util.List<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.
|
BulkByScrollTask.Status |
getStatus() |
TimeValue |
getTook() |
long |
getUpdated() |
long |
getVersionConflicts() |
boolean |
isTimedOut()
Did any of the sub-requests that were part of this request timeout?
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddressclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic BulkByScrollResponse()
public BulkByScrollResponse(TimeValue took, BulkByScrollTask.Status status, java.util.List<BulkItemResponse.Failure> bulkFailures, java.util.List<ScrollableHitSource.SearchFailure> searchFailures, boolean timedOut)
public BulkByScrollResponse(java.lang.Iterable<BulkByScrollResponse> toMerge, @Nullable java.lang.String reasonCancelled)
public TimeValue getTook()
public 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<BulkItemResponse.Failure> getBulkFailures()
public java.util.List<ScrollableHitSource.SearchFailure> getSearchFailures()
public boolean isTimedOut()
public void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in class ActionResponsejava.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class ActionResponsejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object