org.elasticsearch.cluster.routing
Interface ShardsIterator

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

public interface ShardsIterator
extends java.lang.Iterable<ShardRouting>, java.util.Iterator<ShardRouting>


Method Summary
 boolean hasNextActive()
           
 ShardRouting nextActive()
           
 ShardRouting nextActiveOrNull()
           
 ShardsIterator reset()
          Resets the iterator.
 ShardId shardId()
           
 int size()
           
 int sizeActive()
           
 
Methods inherited from interface java.lang.Iterable
iterator
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

reset

ShardsIterator reset()
Resets the iterator.


size

int size()

sizeActive

int sizeActive()

shardId

ShardId shardId()

hasNextActive

boolean hasNextActive()

nextActive

ShardRouting nextActive()
                        throws java.util.NoSuchElementException
Throws:
java.util.NoSuchElementException

nextActiveOrNull

ShardRouting nextActiveOrNull()