org.elasticsearch.cluster.routing
Class PlainShardsIterator
java.lang.Object
org.elasticsearch.cluster.routing.PlainShardsIterator
- All Implemented Interfaces:
- java.lang.Iterable<ShardRouting>, java.util.Iterator<ShardRouting>, ShardsIterator
public class PlainShardsIterator
- extends java.lang.Object
- implements ShardsIterator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainShardsIterator
public PlainShardsIterator(ShardId shardId,
java.util.List<ShardRouting> shards)
reset
public ShardsIterator reset()
- Description copied from interface:
ShardsIterator
- Resets the iterator.
- Specified by:
reset
in interface ShardsIterator
size
public int size()
- Specified by:
size
in interface ShardsIterator
sizeActive
public int sizeActive()
- Specified by:
sizeActive
in interface ShardsIterator
shardId
public ShardId shardId()
- Specified by:
shardId
in interface ShardsIterator
iterator
public java.util.Iterator<ShardRouting> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<ShardRouting>
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface java.util.Iterator<ShardRouting>
next
public ShardRouting next()
- Specified by:
next
in interface java.util.Iterator<ShardRouting>
hasNextActive
public boolean hasNextActive()
- Specified by:
hasNextActive
in interface ShardsIterator
nextActive
public ShardRouting nextActive()
throws java.util.NoSuchElementException
- Specified by:
nextActive
in interface ShardsIterator
- Throws:
java.util.NoSuchElementException
nextActiveOrNull
public ShardRouting nextActiveOrNull()
throws java.util.NoSuchElementException
- Specified by:
nextActiveOrNull
in interface ShardsIterator
- Throws:
java.util.NoSuchElementException
remove
public void remove()
- Specified by:
remove
in interface java.util.Iterator<ShardRouting>