public interface ShardsIterator extends java.lang.Iterable<ShardRouting>
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
java.util.List<ShardRouting> |
getShardRoutings()
Returns the
ShardRouting s that this shards iterator holds. |
int |
hashCode() |
ShardRouting |
nextOrNull()
Returns the next shard, or null if none available.
|
int |
remaining()
Return the number of shards remaining in this
ShardsIterator |
void |
reset()
Resets the iterator to its initial state.
|
int |
size()
The number of shard routing instances.
|
int |
sizeActive()
The number of active shard routing instances
|
void reset()
int size()
int sizeActive()
ShardRouting nextOrNull()
int remaining()
ShardsIterator
int hashCode()
hashCode
in class java.lang.Object
boolean equals(java.lang.Object other)
equals
in class java.lang.Object
java.util.List<ShardRouting> getShardRoutings()
ShardRouting
s that this shards iterator holds.