|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.bulk.BulkResponse
public class BulkResponse
A response of a bulk execution. Holding a response for each item responding (in order) of the bulk requests. Each item holds the index/type/id is operated on, and if it failed or not (with the failure message).
Constructor Summary | |
---|---|
BulkResponse(BulkItemResponse[] responses,
long tookInMillis)
|
Method Summary | |
---|---|
String |
buildFailureMessage()
|
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. |
BulkItemResponse[] |
items()
The items representing each action performed in the bulk operation (in the same order!). |
Iterator<BulkItemResponse> |
iterator()
|
void |
readFrom(StreamInput in)
|
TimeValue |
took()
How long the bulk execution took. |
long |
tookInMillis()
How long the bulk execution took in milliseconds. |
void |
writeTo(StreamOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BulkResponse(BulkItemResponse[] responses, long tookInMillis)
Method Detail |
---|
public TimeValue took()
public TimeValue getTook()
public long tookInMillis()
public long getTookInMillis()
public boolean hasFailures()
public String buildFailureMessage()
public BulkItemResponse[] items()
public Iterator<BulkItemResponse> iterator()
iterator
in interface Iterable<BulkItemResponse>
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |