Class PlainShardIterator
java.lang.Object
org.elasticsearch.cluster.routing.PlainShardsIterator
org.elasticsearch.cluster.routing.PlainShardIterator
- All Implemented Interfaces:
java.lang.Comparable<ShardIterator>,java.lang.Iterable<ShardRouting>,ShardIterator,ShardsIterator
- Direct Known Subclasses:
SearchShardIterator
public class PlainShardIterator extends PlainShardsIterator implements ShardIterator
-
Constructor Summary
Constructors Constructor Description PlainShardIterator(ShardId shardId, java.util.List<ShardRouting> shards)Creates aPlainShardIteratorinstance that iterates over a subset of the given shards this the a givenshardId. -
Method Summary
Methods inherited from class org.elasticsearch.cluster.routing.PlainShardsIterator
getShardRoutings, iterator, nextOrNull, remaining, reset, size, sizeActiveMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.cluster.routing.ShardsIterator
getShardRoutings, nextOrNull, remaining, size, sizeActive
-
Constructor Details
-
PlainShardIterator
Creates aPlainShardIteratorinstance that iterates over a subset of the given shards this the a givenshardId.- Parameters:
shardId- shard id of the groupshards- shards to iterate
-
-
Method Details
-
shardId
Description copied from interface:ShardIteratorThe shard id this group relates to.- Specified by:
shardIdin interfaceShardIterator
-
equals
public boolean equals(java.lang.Object o)- Specified by:
equalsin interfaceShardsIterator- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShardsIterator- Overrides:
hashCodein classjava.lang.Object
-
compareTo
- Specified by:
compareToin interfacejava.lang.Comparable<ShardIterator>
-