- All Superinterfaces:
Iterable<ShardRouting>
- All Known Implementing Classes:
PlainShardsIterator,ShardIterator
Allows to iterate over unrelated shards.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns theShardRoutings that this shards iterator holds.inthashCode()Returns the next shard, ornullif none available.intThe number of active shard routing instancesMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
sizeActive
int sizeActive()The number of active shard routing instances- Returns:
- number of active shard routing instances
-
nextOrNull
ShardRouting nextOrNull()Returns the next shard, ornullif none available. -
hashCode
int hashCode() -
equals
-
getShardRoutings
List<ShardRouting> getShardRoutings()Returns theShardRoutings that this shards iterator holds.
-