public class BulkResponse extends ActionResponse implements java.lang.Iterable<BulkItemResponse>
TransportResponse.Empty
Modifier and Type | Field and Description |
---|---|
static long |
NO_INGEST_TOOK |
Constructor and Description |
---|
BulkResponse(BulkItemResponse[] responses,
long tookInMillis) |
BulkResponse(BulkItemResponse[] responses,
long tookInMillis,
long ingestTookInMillis) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildFailureMessage() |
TimeValue |
getIngestTook()
If ingest is enabled returns the bulk ingest preprocessing time, otherwise 0 is returned.
|
long |
getIngestTookInMillis()
If ingest is enabled returns the bulk ingest preprocessing time.
|
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.
|
java.util.Iterator<BulkItemResponse> |
iterator() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
remoteAddress, remoteAddress
public static final long NO_INGEST_TOOK
public BulkResponse(BulkItemResponse[] responses, long tookInMillis)
public BulkResponse(BulkItemResponse[] responses, long tookInMillis, long ingestTookInMillis)
public TimeValue getTook()
public long getTookInMillis()
public TimeValue getIngestTook()
public long getIngestTookInMillis()
public boolean hasFailures()
public java.lang.String buildFailureMessage()
public BulkItemResponse[] getItems()
public java.util.Iterator<BulkItemResponse> iterator()
iterator
in interface java.lang.Iterable<BulkItemResponse>
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class ActionResponse
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class ActionResponse
java.io.IOException