Interface ShardsIterator

All Superinterfaces:
Iterable<ShardRouting>
All Known Implementing Classes:
PlainShardsIterator, ShardIterator

public interface ShardsIterator extends Iterable<ShardRouting>
Allows to iterate over unrelated shards.
  • 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, or null if none available.
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      boolean equals(Object other)
      Overrides:
      equals in class Object
    • getShardRoutings

      List<ShardRouting> getShardRoutings()
      Returns the ShardRoutings that this shards iterator holds.