Package org.elasticsearch.index.reindex
Class ScrollableHitSource.SearchFailure
java.lang.Object
org.elasticsearch.index.reindex.ScrollableHitSource.SearchFailure
- All Implemented Interfaces:
Writeable
,org.elasticsearch.common.xcontent.ToXContent
,org.elasticsearch.common.xcontent.ToXContentObject
- Enclosing class:
- ScrollableHitSource
public static class ScrollableHitSource.SearchFailure
extends Object
implements Writeable, org.elasticsearch.common.xcontent.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
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
Field Summary
Modifier and TypeFieldDescriptionstatic String
static String
static String
static String
static String
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Constructor Summary
ConstructorDescriptionSearchFailure(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()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
void
writeTo(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 Details
-
INDEX_FIELD
- See Also:
- Constant Field Values
-
SHARD_FIELD
- See Also:
- Constant Field Values
-
NODE_FIELD
- See Also:
- Constant Field Values
-
REASON_FIELD
- See Also:
- Constant Field Values
-
STATUS_FIELD
- See Also:
- Constant Field Values
-
-
Constructor Details
-
SearchFailure
-
SearchFailure
public SearchFailure(Throwable reason, @Nullable String index, @Nullable Integer shardId, @Nullable String nodeId, RestStatus status) -
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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
getIndex
-
getShardId
-
getStatus
-
getReason
-
getNodeId
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws IOException- Specified by:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
IOException
-
toString
-