|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.action.search.ShardSearchFailure
public class ShardSearchFailure
Represents a failure to search on a specific shard.
Field Summary | |
---|---|
static ShardSearchFailure[] |
EMPTY_ARRAY
|
Constructor Summary | |
---|---|
ShardSearchFailure(String reason,
SearchShardTarget shardTarget)
|
|
ShardSearchFailure(Throwable t)
|
Method Summary | |
---|---|
String |
index()
The index the search failed on. |
void |
readFrom(StreamInput in)
|
static ShardSearchFailure |
readShardSearchFailure(StreamInput in)
|
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()
|
String |
toString()
|
void |
writeTo(StreamOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ShardSearchFailure[] EMPTY_ARRAY
Constructor Detail |
---|
public ShardSearchFailure(Throwable t)
public ShardSearchFailure(String reason, SearchShardTarget shardTarget)
Method Detail |
---|
@Nullable public SearchShardTarget shard()
public RestStatus status()
public String index()
index
in interface ShardOperationFailedException
public int shardId()
shardId
in interface ShardOperationFailedException
public String reason()
reason
in interface ShardOperationFailedException
public String toString()
toString
in class Object
public static ShardSearchFailure readShardSearchFailure(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |