|
|||||||||
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 | |
---|---|
java.lang.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!). |
java.util.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 java.lang.String buildFailureMessage()
public BulkItemResponse[] items()
public java.util.Iterator<BulkItemResponse> iterator()
iterator
in interface java.lang.Iterable<BulkItemResponse>
public void readFrom(StreamInput in) throws java.io.IOException
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
writeTo
in interface Streamable
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |