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
ShardRoutings 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()
ShardsIteratorint hashCode()
hashCode in class java.lang.Objectboolean equals(java.lang.Object other)
equals in class java.lang.Objectjava.util.List<ShardRouting> getShardRoutings()
ShardRoutings that this shards iterator holds.