public class ShardSearchFailure extends Object implements ShardOperationFailedException
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| 修飾子とタイプ | フィールドと説明 |
|---|---|
static ShardSearchFailure[] |
EMPTY_ARRAY |
EMPTY_PARAMS| コンストラクタと説明 |
|---|
ShardSearchFailure(String reason,
SearchShardTarget shardTarget) |
ShardSearchFailure(String reason,
SearchShardTarget shardTarget,
RestStatus status) |
ShardSearchFailure(Throwable t) |
ShardSearchFailure(Throwable t,
SearchShardTarget shardTarget) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
Throwable |
getCause()
The cause of this failure.
|
String |
index()
The index the search failed on.
|
void |
readFrom(StreamInput in) |
static ShardSearchFailure |
readShardSearchFailure(StreamInput in) |
String |
reason()
The reason of the failure.
|
SearchShardTarget |
shard()
The search shard target the failure occurred on.
|
int |
shardId()
The shard id the search failed on.
|
RestStatus |
status()
The status of the failure.
|
String |
toString() |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public static final ShardSearchFailure[] EMPTY_ARRAY
public ShardSearchFailure(Throwable t)
public ShardSearchFailure(Throwable t, @Nullable SearchShardTarget shardTarget)
public ShardSearchFailure(String reason, SearchShardTarget shardTarget)
public ShardSearchFailure(String reason, SearchShardTarget shardTarget, RestStatus status)
@Nullable public SearchShardTarget shard()
public RestStatus status()
ShardOperationFailedExceptionstatus インタフェース内 ShardOperationFailedExceptionpublic String index()
index インタフェース内 ShardOperationFailedExceptionpublic int shardId()
shardId インタフェース内 ShardOperationFailedExceptionpublic String reason()
reason インタフェース内 ShardOperationFailedExceptionpublic static ShardSearchFailure readShardSearchFailure(StreamInput in) throws IOException
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom インタフェース内 StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo インタフェース内 StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent インタフェース内 ToXContentIOExceptionpublic Throwable getCause()
ShardOperationFailedExceptiongetCause インタフェース内 ShardOperationFailedExceptionCopyright © 2009–2016. All rights reserved.