org.elasticsearch.cluster.routing
Interface ShardIterator

All Superinterfaces:
java.lang.Iterable<ShardRouting>, java.util.Iterator<ShardRouting>, ShardsIterator
All Known Implementing Classes:
PlainShardIterator

public interface ShardIterator
extends ShardsIterator

Allows to iterate over a set of shard instances (routing) within a shard id group.


Method Summary
 ShardIterator reset()
          Resets the iterator.
 ShardId shardId()
          The shard id this group relates to.
 
Methods inherited from interface org.elasticsearch.cluster.routing.ShardsIterator
equals, hashCode, hasNextActive, hasNextAssigned, nextActive, nextActiveOrNull, nextAssigned, nextAssignedOrNull, size, sizeActive, sizeAssigned
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

shardId

ShardId shardId()
The shard id this group relates to.


reset

ShardIterator reset()
Resets the iterator.

Specified by:
reset in interface ShardsIterator