Package org.elasticsearch.action.search
Class ShardSearchFailure
java.lang.Object
org.elasticsearch.action.ShardOperationFailedException
org.elasticsearch.action.search.ShardSearchFailure
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class ShardSearchFailure extends ShardOperationFailedException
Represents a failure to search on a specific shard.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields Modifier and Type Field Description static ShardSearchFailure[]EMPTY_ARRAYFields inherited from class org.elasticsearch.action.ShardOperationFailedException
cause, index, reason, shardId, statusFields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
Constructors Constructor Description ShardSearchFailure(java.lang.Exception e)ShardSearchFailure(java.lang.Exception e, SearchShardTarget shardTarget) -
Method Summary
Modifier and Type Method Description static ShardSearchFailurefromXContent(org.elasticsearch.common.xcontent.XContentParser parser)static ShardSearchFailurereadShardSearchFailure(StreamInput in)SearchShardTargetshard()The search shard target the failure occurred on.java.lang.StringtoString()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class org.elasticsearch.action.ShardOperationFailedException
getCause, index, reason, shardId, statusMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
EMPTY_ARRAY
-
-
Constructor Details
-
ShardSearchFailure
public ShardSearchFailure(java.lang.Exception e) -
ShardSearchFailure
-
-
Method Details
-
shard
The search shard target the failure occurred on. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-
readShardSearchFailure
- Throws:
java.io.IOException
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Throws:
java.io.IOException
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Throws:
java.io.IOException
-
fromXContent
public static ShardSearchFailure fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-