public class ShardSearchFailure extends java.lang.Object implements ShardOperationFailedException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static ShardSearchFailure[] |
EMPTY_ARRAY |
EMPTY_PARAMS| Constructor and Description |
|---|
ShardSearchFailure(java.lang.Exception e) |
ShardSearchFailure(java.lang.Exception e,
SearchShardTarget shardTarget) |
ShardSearchFailure(java.lang.String reason,
SearchShardTarget shardTarget) |
| Modifier and Type | Method and Description |
|---|---|
static ShardSearchFailure |
fromXContent(XContentParser parser) |
java.lang.Throwable |
getCause()
The cause of this failure
|
java.lang.String |
index()
The index the search failed on.
|
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static ShardSearchFailure |
readShardSearchFailure(StreamInput in) |
java.lang.String |
reason()
The reason of the failure.
|
SearchShardTarget |
shard()
The search shard target the failure occurred on.
|
int |
shardId()
The shard id the search failed on.
|
RestStatus |
status()
The status of the failure.
|
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic static final ShardSearchFailure[] EMPTY_ARRAY
public ShardSearchFailure(java.lang.Exception e)
public ShardSearchFailure(java.lang.Exception e,
@Nullable
SearchShardTarget shardTarget)
public ShardSearchFailure(java.lang.String reason,
SearchShardTarget shardTarget)
@Nullable public SearchShardTarget shard()
public RestStatus status()
ShardOperationFailedExceptionstatus in interface ShardOperationFailedExceptionpublic java.lang.String index()
index in interface ShardOperationFailedExceptionpublic int shardId()
shardId in interface ShardOperationFailedExceptionpublic java.lang.String reason()
reason in interface ShardOperationFailedExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic static ShardSearchFailure readShardSearchFailure(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface Streamablejava.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface Streamablejava.io.IOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic static ShardSearchFailure fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOExceptionpublic java.lang.Throwable getCause()
ShardOperationFailedExceptiongetCause in interface ShardOperationFailedException