|
|||||||||
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(java.lang.String reason,
SearchShardTarget shardTarget)
|
|
ShardSearchFailure(java.lang.Throwable t)
|
Method Summary | |
---|---|
java.lang.String |
index()
The index the search failed on. |
void |
readFrom(StreamInput in)
|
static ShardSearchFailure |
readShardSearchFailure(StreamInput in)
|
java.lang.String |
reason()
The reason of the failure. |
SearchShardTarget |
shard()
The search shard target the failure occured on. |
int |
shardId()
The shard id the search failed on. |
java.lang.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(java.lang.Throwable t)
public ShardSearchFailure(java.lang.String reason, SearchShardTarget shardTarget)
Method Detail |
---|
@Nullable public SearchShardTarget shard()
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
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 |