public static class ScrollableHitSource.SearchFailure extends java.lang.Object implements Writeable, ToXContent
ShardSearchFailure but useful for reindex from remote as well.Writeable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
SearchFailure(StreamInput in)
Read from a stream.
|
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) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getIndex() |
java.lang.String |
getNodeId() |
java.lang.Throwable |
getReason() |
java.lang.Integer |
getShardId() |
java.lang.String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out)
Write this into the StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisFragmentpublic SearchFailure(java.lang.Throwable reason,
@Nullable
java.lang.String index,
@Nullable
java.lang.Integer shardId,
@Nullable
java.lang.String nodeId)
public SearchFailure(java.lang.Throwable reason)
public SearchFailure(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
Writeablepublic java.lang.String getIndex()
public java.lang.Integer getShardId()
public java.lang.Throwable getReason()
@Nullable public java.lang.String getNodeId()
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
toXContent in interface ToXContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Object