Class PlainShardIterator

    • Constructor Detail

      • PlainShardIterator

        public PlainShardIterator​(ShardId shardId,
                                  java.util.List<ShardRouting> shards)
        Creates a PlainShardIterator instance that iterates over a subset of the given shards this the a given shardId.
        Parameters:
        shardId - shard id of the group
        shards - shards to iterate
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface ShardsIterator
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface ShardsIterator
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(ShardIterator o)
        Specified by:
        compareTo in interface java.lang.Comparable<ShardIterator>