public static class BulkItemResponse.Failure extends Object implements Writeable<BulkItemResponse.Failure>, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static BulkItemResponse.Failure |
PROTOTYPE |
EMPTY_PARAMS| Constructor and Description |
|---|
BulkItemResponse.Failure(String index,
String type,
String id,
Throwable t) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause()
The actual cause of the failure.
|
String |
getId()
The id of the action.
|
String |
getIndex()
The index name of the action.
|
String |
getMessage()
The failure message.
|
RestStatus |
getStatus()
The rest status.
|
String |
getType()
The type of the action.
|
BulkItemResponse.Failure |
readFrom(StreamInput in)
Reads a copy of an object with the same type form the stream input
The caller object remains unchanged.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Writes the current object into the output stream out
|
public static final BulkItemResponse.Failure PROTOTYPE
public String getIndex()
public String getType()
public String getId()
public String getMessage()
public RestStatus getStatus()
public Throwable getCause()
public BulkItemResponse.Failure readFrom(StreamInput in) throws IOException
StreamableReaderreadFrom in interface StreamableReader<BulkItemResponse.Failure>IOExceptionpublic void writeTo(StreamOutput out) throws IOException
WriteablewriteTo in interface Writeable<BulkItemResponse.Failure>IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.