public class BulkResponse extends ActionResponse implements Iterable<BulkItemResponse>
TransportResponse.Emptyheaders| Constructor and Description |
|---|
BulkResponse(BulkItemResponse[] responses,
long tookInMillis) |
| Modifier and Type | Method and Description |
|---|---|
String |
buildFailureMessage() |
BulkItemResponse[] |
getItems()
The items representing each action performed in the bulk operation (in the same order!).
|
TimeValue |
getTook()
How long the bulk execution took.
|
long |
getTookInMillis()
How long the bulk execution took in milliseconds.
|
boolean |
hasFailures()
Has anything failed with the execution.
|
Iterator<BulkItemResponse> |
iterator() |
void |
readFrom(StreamInput in) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic BulkResponse(BulkItemResponse[] responses, long tookInMillis)
public TimeValue getTook()
public long getTookInMillis()
public boolean hasFailures()
public String buildFailureMessage()
public BulkItemResponse[] getItems()
public Iterator<BulkItemResponse> iterator()
iterator in interface Iterable<BulkItemResponse>public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionCopyright © 2009–2017. All rights reserved.