Interface ShardsIterator

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

public interface ShardsIterator extends <ShardRouting>, Countable
Allows to iterate over unrelated shards.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     other)
     
    Returns the ShardRoutings that this shards iterator holds.
    int
     
    Returns the next shard, or null if none available.
    int
    Return the number of shards remaining in this ShardsIterator
    void
    Resets the iterator to its initial state.
    int
    The number of shard routing instances.
    int
    The number of active shard routing instances

    Methods inherited from interface java.lang.

    , ,
  • Method Details

    • reset

      void reset()
      Resets the iterator to its initial state.
    • size

      int size()
      The number of shard routing instances.
      Specified by:
      size in interface Countable
      Returns:
      number of shard routing instances in this iterator
    • 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.
    • remaining

      int remaining()
      Return the number of shards remaining in this ShardsIterator
      Returns:
      number of shard remaining
    • hashCode

      int hashCode()
      Overrides:
       in class 
    • equals

      boolean equals( other)
      Overrides:
       in class 
    • getShardRoutings

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