public class BulkResponse extends ActionResponse implements Iterable<BulkItemResponse>
TransportResponse.Empty
headers
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, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public 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 Streamable
readFrom
in class ActionResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionResponse
IOException
Copyright © 2009–2016. All rights reserved.