public class IndexShardStats extends Object implements Iterable<ShardStats>, Streamable
Constructor and Description |
---|
IndexShardStats(ShardId shardId,
ShardStats[] shards) |
Modifier and Type | Method and Description |
---|---|
ShardStats |
getAt(int position) |
CommonStats |
getPrimary() |
ShardId |
getShardId() |
ShardStats[] |
getShards() |
CommonStats |
getTotal() |
Iterator<ShardStats> |
iterator() |
void |
readFrom(StreamInput in) |
static IndexShardStats |
readIndexShardStats(StreamInput in) |
void |
writeTo(StreamOutput out) |
public IndexShardStats(ShardId shardId, ShardStats[] shards)
public ShardId getShardId()
public ShardStats[] getShards()
public ShardStats getAt(int position)
public Iterator<ShardStats> iterator()
iterator
in interface Iterable<ShardStats>
public CommonStats getTotal()
public CommonStats getPrimary()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public static IndexShardStats readIndexShardStats(StreamInput in) throws IOException
IOException
Copyright © 2009–2017. All rights reserved.