Interface ShardsIterator
- All Superinterfaces:
Countable
,Iterable<ShardRouting>
- All Known Subinterfaces:
ShardIterator
- All Known Implementing Classes:
PlainShardIterator
,PlainShardsIterator
Allows to iterate over unrelated shards.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns theShardRouting
s that this shards iterator holds.int
hashCode()
Returns the next shard, ornull
if none available.int
Return the number of shards remaining in thisShardsIterator
void
reset()
Resets the iterator to its initial state.int
size()
The number of shard routing instances.int
The number of active shard routing instancesMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
reset
void reset()Resets the iterator to its initial state. -
size
int size()The number of shard routing instances. -
sizeActive
int sizeActive()The number of active shard routing instances- Returns:
- number of active shard routing instances
-
nextOrNull
ShardRouting nextOrNull()Returns the next shard, ornull
if none available. -
remaining
int remaining()Return the number of shards remaining in thisShardsIterator
- Returns:
- number of shard remaining
-
hashCode
int hashCode() -
equals
-
getShardRoutings
List<ShardRouting> getShardRoutings()Returns theShardRouting
s that this shards iterator holds.
-