Class IndexShardStats
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.stats.IndexShardStats
-
- All Implemented Interfaces:
java.lang.Iterable<ShardStats>,Streamable
public class IndexShardStats extends java.lang.Object implements java.lang.Iterable<ShardStats>, Streamable
-
-
Constructor Summary
Constructors Constructor Description IndexShardStats(ShardId shardId, ShardStats[] shards)
-
Method Summary
Modifier and Type Method Description ShardStatsgetAt(int position)CommonStatsgetPrimary()ShardIdgetShardId()ShardStats[]getShards()CommonStatsgetTotal()java.util.Iterator<ShardStats>iterator()voidreadFrom(StreamInput in)Set this object's fields from a StreamInput.static IndexShardStatsreadIndexShardStats(StreamInput in)voidwriteTo(StreamOutput out)Write this object's fields to a StreamOutput.
-
-
-
Constructor Detail
-
IndexShardStats
public IndexShardStats(ShardId shardId, ShardStats[] shards)
-
-
Method Detail
-
getShardId
public ShardId getShardId()
-
getShards
public ShardStats[] getShards()
-
getAt
public ShardStats getAt(int position)
-
iterator
public java.util.Iterator<ShardStats> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<ShardStats>
-
getTotal
public CommonStats getTotal()
-
getPrimary
public CommonStats getPrimary()
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:StreamableSet this object's fields from a StreamInput.- Specified by:
readFromin interfaceStreamable- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:StreamableWrite this object's fields to a StreamOutput.- Specified by:
writeToin interfaceStreamable- Throws:
java.io.IOException
-
readIndexShardStats
public static IndexShardStats readIndexShardStats(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-