public class BulkByScrollResponse extends ActionResponse implements ToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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, remoteAddress
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isFragment
public 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
Streamable
writeTo
in interface Streamable
writeTo
in class ActionResponse
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object