|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.bulk.BulkItemResponse
public class BulkItemResponse
Represents a single item response for an action executed as part of the bulk API. Holds the index/type/id of the relevant action, and if it has failed or not (with the failure message incase it failed).
Nested Class Summary | |
---|---|
static class |
BulkItemResponse.Failure
Represents a failure. |
Constructor Summary | |
---|---|
BulkItemResponse(int id,
java.lang.String opType,
ActionResponse response)
|
|
BulkItemResponse(int id,
java.lang.String opType,
BulkItemResponse.Failure failure)
|
Method Summary | ||
---|---|---|
boolean |
failed()
Is this a failed execution of an operation. |
|
BulkItemResponse.Failure |
failure()
The actual failure object if there was a failure. |
|
java.lang.String |
failureMessage()
The failure message, null if it did not fail. |
|
BulkItemResponse.Failure |
getFailure()
The actual failure object if there was a failure. |
|
java.lang.String |
getFailureMessage()
The failure message, null if it did not fail. |
|
java.lang.String |
getId()
The id of the action. |
|
java.lang.String |
getIndex()
The index name of the action. |
|
java.lang.String |
getType()
The type of the action. |
|
java.lang.String |
id()
The id of the action. |
|
java.lang.String |
index()
The index name of the action. |
|
boolean |
isFailed()
Is this a failed execution of an operation. |
|
int |
itemId()
The numeric order of the item matching the same request order in the bulk request. |
|
java.lang.String |
opType()
The operation type ("index", "create" or "delete"). |
|
static BulkItemResponse |
readBulkItem(StreamInput in)
|
|
void |
readFrom(StreamInput in)
|
|
|
response()
The actual response ( IndexResponse or DeleteResponse ). |
|
java.lang.String |
type()
The type of the action. |
|
long |
version()
The version of the action. |
|
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 BulkItemResponse(int id, java.lang.String opType, ActionResponse response)
public BulkItemResponse(int id, java.lang.String opType, BulkItemResponse.Failure failure)
Method Detail |
---|
public int itemId()
public java.lang.String opType()
public java.lang.String index()
public java.lang.String getIndex()
public java.lang.String type()
public java.lang.String getType()
public java.lang.String id()
public java.lang.String getId()
public long version()
public <T extends ActionResponse> T response()
IndexResponse
or DeleteResponse
). null in
case of failure.
public boolean failed()
public boolean isFailed()
public java.lang.String failureMessage()
public java.lang.String getFailureMessage()
public BulkItemResponse.Failure failure()
public BulkItemResponse.Failure getFailure()
public static BulkItemResponse readBulkItem(StreamInput in) throws java.io.IOException
java.io.IOException
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 |