|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ShardsIterator
Allows to iterate over unrelated shards.
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
|
int |
hashCode()
|
boolean |
hasNextActive()
Is there an active shard we can iterate to. |
boolean |
hasNextAssigned()
Is there an assigned shard we can iterate to. |
ShardRouting |
nextActive()
Returns the next active shard, or throws NoSuchElementException. |
ShardRouting |
nextActiveOrNull()
Returns the next active shard, or null. |
ShardRouting |
nextAssigned()
Returns the next assigned shard, or throws NoSuchElementException. |
ShardRouting |
nextAssignedOrNull()
Returns the next assigned shard, or null. |
ShardsIterator |
reset()
Resets the iterator. |
int |
size()
The number of shard routing instances. |
int |
sizeActive()
The number of active shard routing instances. |
int |
sizeAssigned()
The number of assigned shard routing instances. |
| Methods inherited from interface java.lang.Iterable |
|---|
iterator |
| Methods inherited from interface java.util.Iterator |
|---|
hasNext, next, remove |
| Method Detail |
|---|
ShardsIterator reset()
int size()
int sizeActive()
ShardRouting.active()boolean hasNextActive()
ShardRouting.active()
ShardRouting nextActive()
throws java.util.NoSuchElementException
NoSuchElementException.
java.util.NoSuchElementExceptionShardRouting.active()ShardRouting nextActiveOrNull()
ShardRouting.active()int sizeAssigned()
ShardRouting.assignedToNode()boolean hasNextAssigned()
ShardRouting.assignedToNode()
ShardRouting nextAssigned()
throws java.util.NoSuchElementException
NoSuchElementException.
java.util.NoSuchElementExceptionShardRouting.assignedToNode()ShardRouting nextAssignedOrNull()
ShardRouting.assignedToNode()int hashCode()
hashCode in class java.lang.Objectboolean equals(java.lang.Object other)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||