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, wait
isFragment
public 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()
ShardOperationFailedException
status
in interface ShardOperationFailedException
public java.lang.String index()
index
in interface ShardOperationFailedException
public int shardId()
shardId
in interface ShardOperationFailedException
public java.lang.String reason()
reason
in interface ShardOperationFailedException
public java.lang.String toString()
toString
in class java.lang.Object
public static ShardSearchFailure readShardSearchFailure(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent
in interface ToXContent
java.io.IOException
public static ShardSearchFailure fromXContent(XContentParser parser) throws java.io.IOException
java.io.IOException
public java.lang.Throwable getCause()
ShardOperationFailedException
getCause
in interface ShardOperationFailedException