Module org.elasticsearch.server
Package org.elasticsearch.index.reindex
Class ScrollableHitSource.SearchFailure
java.lang.Object
org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Enclosing class:
ScrollableHitSource
public static class ScrollableHitSource.SearchFailure
extends Object
implements Writeable, ToXContentObject
A failure during search. Like
ShardSearchFailure but useful for reindex from remote as well.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionSearchFailure(Throwable reason) Build a search failure that doesn't have shard information available.SearchFailure(Throwable reason, String index, Integer shardId, String nodeId) SearchFailure(Throwable reason, String index, Integer shardId, String nodeId, RestStatus status) Read from a stream. -
Method Summary
Modifier and TypeMethodDescriptiongetIndex()toString()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
INDEX_FIELD
- See Also:
-
SHARD_FIELD
- See Also:
-
NODE_FIELD
- See Also:
-
REASON_FIELD
- See Also:
-
STATUS_FIELD
- See Also:
-
-
Constructor Details
-
SearchFailure
-
SearchFailure
-
SearchFailure
Build a search failure that doesn't have shard information available. -
SearchFailure
Read from a stream.- Throws:
IOException
-
-
Method Details
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getIndex
-
getShardId
-
getStatus
-
getReason
-
getNodeId
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
toString
-