public class ClusterSearchShardsGroup extends Object implements Streamable, ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ClusterSearchShardsGroup(String index,
int shardId,
ShardRouting[] shards) |
| Modifier and Type | Method and Description |
|---|---|
String |
getIndex() |
int |
getShardId() |
ShardRouting[] |
getShards() |
void |
readFrom(StreamInput in) |
static ClusterSearchShardsGroup |
readSearchShardsGroupResponse(StreamInput in) |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
public ClusterSearchShardsGroup(String index, int shardId, ShardRouting[] shards)
public static ClusterSearchShardsGroup readSearchShardsGroupResponse(StreamInput in) throws IOException
IOExceptionpublic String getIndex()
public int getShardId()
public ShardRouting[] getShards()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamableIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamableIOExceptionpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionCopyright © 2009–2017. All rights reserved.