Class IndexShardStats
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.stats.IndexShardStats
-
- All Implemented Interfaces:
Iterable<ShardStats>,Writeable
public class IndexShardStats extends Object implements Iterable<ShardStats>, Writeable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description IndexShardStats(StreamInput in)IndexShardStats(ShardId shardId, ShardStats[] shards)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShardStatsgetAt(int position)CommonStatsgetPrimary()ShardIdgetShardId()ShardStats[]getShards()CommonStatsgetTotal()Iterator<ShardStats>iterator()voidwriteTo(StreamOutput out)Write this into the StreamOutput.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
IndexShardStats
public IndexShardStats(StreamInput in) throws IOException
- Throws:
IOException
-
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 Iterator<ShardStats> iterator()
- Specified by:
iteratorin interfaceIterable<ShardStats>
-
getTotal
public CommonStats getTotal()
-
getPrimary
public CommonStats getPrimary()
-
writeTo
public void writeTo(StreamOutput out) throws IOException
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
-