Class PlainShardsIterator
java.lang.Object
org.elasticsearch.common.util.PlainIterator<ShardRouting>
org.elasticsearch.cluster.routing.PlainShardsIterator
- All Implemented Interfaces:
Iterable<ShardRouting>,ShardsIterator,Countable
- Direct Known Subclasses:
PlainShardIterator
A simple
ShardsIterator that iterates a list or sub-list of
shard indexRoutings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns theShardRoutings that this shards iterator holds.intThe number of active shard routing instancesMethods inherited from class org.elasticsearch.common.util.PlainIterator
asList, iterator, nextOrNull, remaining, reset, sizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.elasticsearch.cluster.routing.ShardsIterator
equals, hashCode, nextOrNull, remaining, reset, size
-
Constructor Details
-
PlainShardsIterator
-
-
Method Details
-
sizeActive
public int sizeActive()Description copied from interface:ShardsIteratorThe number of active shard routing instances- Specified by:
sizeActivein interfaceShardsIterator- Returns:
- number of active shard routing instances
-
getShardRoutings
Description copied from interface:ShardsIteratorReturns theShardRoutings that this shards iterator holds.- Specified by:
getShardRoutingsin interfaceShardsIterator
-