public final class RoutingNodes.RoutingNodeIterator extends java.lang.Object implements java.util.Iterator<ShardRouting>, java.lang.Iterable<ShardRouting>
Constructor and Description |
---|
RoutingNodeIterator(RoutingNode iterable) |
Modifier and Type | Method and Description |
---|---|
ShardRouting |
current() |
boolean |
hasNext() |
boolean |
isRemoved()
returns true if
remove() or moveToUnassigned(UnassignedInfo) were called on the current shard |
java.util.Iterator<ShardRouting> |
iterator() |
void |
moveToUnassigned(UnassignedInfo unassignedInfo) |
ShardRouting |
next() |
void |
remove() |
public RoutingNodeIterator(RoutingNode iterable)
public boolean hasNext()
hasNext
in interface java.util.Iterator<ShardRouting>
public ShardRouting next()
next
in interface java.util.Iterator<ShardRouting>
public void remove()
remove
in interface java.util.Iterator<ShardRouting>
public boolean isRemoved()
remove()
or moveToUnassigned(UnassignedInfo)
were called on the current shardpublic java.util.Iterator<ShardRouting> iterator()
iterator
in interface java.lang.Iterable<ShardRouting>
public void moveToUnassigned(UnassignedInfo unassignedInfo)
public ShardRouting current()