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. LikeShardSearchFailurebut useful for reindex from remote as well.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested 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 StringINDEX_FIELDstatic StringNODE_FIELDstatic StringREASON_FIELDstatic StringSHARD_FIELDstatic StringSTATUS_FIELD-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description SearchFailure(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)SearchFailure(StreamInput in)Read from a stream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIndex()StringgetNodeId()ThrowablegetReason()IntegergetShardId()RestStatusgetStatus()StringtoString()XContentBuildertoXContent(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, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
INDEX_FIELD
public static final String INDEX_FIELD
- See Also:
- Constant Field Values
-
SHARD_FIELD
public static final String SHARD_FIELD
- See Also:
- Constant Field Values
-
NODE_FIELD
public static final String NODE_FIELD
- See Also:
- Constant Field Values
-
REASON_FIELD
public static final String REASON_FIELD
- See Also:
- Constant Field Values
-
STATUS_FIELD
public static final String STATUS_FIELD
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchFailure
public SearchFailure(Throwable reason, @Nullable String index, @Nullable Integer shardId, @Nullable String nodeId)
-
SearchFailure
public SearchFailure(Throwable reason, @Nullable String index, @Nullable Integer shardId, @Nullable String nodeId, RestStatus status)
-
SearchFailure
public SearchFailure(Throwable reason)
Build a search failure that doesn't have shard information available.
-
SearchFailure
public SearchFailure(StreamInput in) throws IOException
Read from a stream.- Throws:
IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
getIndex
public String getIndex()
-
getShardId
public Integer getShardId()
-
getStatus
public RestStatus getStatus()
-
getReason
public Throwable getReason()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-