Class IndexShardStats
- java.lang.Object
-
- org.elasticsearch.action.admin.indices.stats.IndexShardStats
-
- All Implemented Interfaces:
java.lang.Iterable<ShardStats>
,Writeable
public class IndexShardStats extends java.lang.Object implements java.lang.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
Modifier and Type Method Description ShardStats
getAt(int position)
CommonStats
getPrimary()
ShardId
getShardId()
ShardStats[]
getShards()
CommonStats
getTotal()
java.util.Iterator<ShardStats>
iterator()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
-
-
Constructor Detail
-
IndexShardStats
public IndexShardStats(StreamInput in) throws java.io.IOException
- Throws:
java.io.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 java.util.Iterator<ShardStats> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<ShardStats>
-
getTotal
public CommonStats getTotal()
-
getPrimary
public CommonStats getPrimary()
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Writeable
Write this into the StreamOutput.
-
-