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 java.lang.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.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 java.lang.String
INDEX_FIELD
static java.lang.String
NODE_FIELD
static java.lang.String
REASON_FIELD
static java.lang.String
SHARD_FIELD
static java.lang.String
STATUS_FIELD
-
Constructor Summary
Constructors Constructor Description SearchFailure(java.lang.Throwable reason)
Build a search failure that doesn't have shard information available.SearchFailure(java.lang.Throwable reason, java.lang.String index, java.lang.Integer shardId, java.lang.String nodeId)
SearchFailure(java.lang.Throwable reason, java.lang.String index, java.lang.Integer shardId, java.lang.String nodeId, RestStatus status)
SearchFailure(StreamInput in)
Read from a stream. -
Method Summary
Modifier and Type Method Description java.lang.String
getIndex()
java.lang.String
getNodeId()
java.lang.Throwable
getReason()
java.lang.Integer
getShardId()
RestStatus
getStatus()
java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
Field Details
-
INDEX_FIELD
public static final java.lang.String INDEX_FIELD- See Also:
- Constant Field Values
-
SHARD_FIELD
public static final java.lang.String SHARD_FIELD- See Also:
- Constant Field Values
-
NODE_FIELD
public static final java.lang.String NODE_FIELD- See Also:
- Constant Field Values
-
REASON_FIELD
public static final java.lang.String REASON_FIELD- See Also:
- Constant Field Values
-
STATUS_FIELD
public static final java.lang.String STATUS_FIELD- See Also:
- Constant Field Values
-
-
Constructor Details
-
SearchFailure
-
SearchFailure
public SearchFailure(java.lang.Throwable reason, @Nullable java.lang.String index, @Nullable java.lang.Integer shardId, @Nullable java.lang.String nodeId, RestStatus status) -
SearchFailure
public SearchFailure(java.lang.Throwable reason)Build a search failure that doesn't have shard information available. -
SearchFailure
Read from a stream.- Throws:
java.io.IOException
-
-
Method Details
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
getIndex
public java.lang.String getIndex() -
getShardId
public java.lang.Integer getShardId() -
getStatus
-
getReason
public java.lang.Throwable getReason() -
getNodeId
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-