|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.cluster.routing.PlainShardsIterator
public class PlainShardsIterator
Constructor Summary | |
---|---|
PlainShardsIterator(ShardId shardId,
java.util.List<ShardRouting> shards)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
boolean |
hasNext()
|
boolean |
hasNextActive()
Is there an active shard we can iterate to. |
boolean |
hasNextAssigned()
Is there an assigned shard we can iterate to. |
java.util.Iterator<ShardRouting> |
iterator()
|
ShardRouting |
next()
|
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. |
void |
remove()
|
ShardsIterator |
reset()
Resets the iterator. |
ShardId |
shardId()
The shard id this group relates to. |
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 class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PlainShardsIterator(ShardId shardId, java.util.List<ShardRouting> shards)
Method Detail |
---|
public ShardsIterator reset()
ShardsIterator
reset
in interface ShardsIterator
public int size()
ShardsIterator
size
in interface ShardsIterator
public ShardId shardId()
ShardsIterator
shardId
in interface ShardsIterator
public java.util.Iterator<ShardRouting> iterator()
iterator
in interface java.lang.Iterable<ShardRouting>
public boolean hasNext()
hasNext
in interface java.util.Iterator<ShardRouting>
public ShardRouting next()
next
in interface java.util.Iterator<ShardRouting>
public int sizeActive()
ShardsIterator
sizeActive
in interface ShardsIterator
ShardRouting.active()
public boolean hasNextActive()
ShardsIterator
hasNextActive
in interface ShardsIterator
ShardRouting.active()
public ShardRouting nextActive() throws java.util.NoSuchElementException
ShardsIterator
NoSuchElementException
.
nextActive
in interface ShardsIterator
java.util.NoSuchElementException
ShardRouting.active()
public ShardRouting nextActiveOrNull() throws java.util.NoSuchElementException
ShardsIterator
nextActiveOrNull
in interface ShardsIterator
java.util.NoSuchElementException
ShardRouting.active()
public int sizeAssigned()
ShardsIterator
sizeAssigned
in interface ShardsIterator
ShardRouting.assignedToNode()
public boolean hasNextAssigned()
ShardsIterator
hasNextAssigned
in interface ShardsIterator
ShardRouting.assignedToNode()
public ShardRouting nextAssigned() throws java.util.NoSuchElementException
ShardsIterator
NoSuchElementException
.
nextAssigned
in interface ShardsIterator
java.util.NoSuchElementException
ShardRouting.assignedToNode()
public ShardRouting nextAssignedOrNull()
ShardsIterator
nextAssignedOrNull
in interface ShardsIterator
ShardRouting.assignedToNode()
public void remove()
remove
in interface java.util.Iterator<ShardRouting>
public boolean equals(java.lang.Object o)
equals
in interface ShardsIterator
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface ShardsIterator
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |