Class PlainShardIterator
java.lang.Object
org.elasticsearch.common.util.PlainIterator<ShardRouting>
org.elasticsearch.cluster.routing.PlainShardsIterator
org.elasticsearch.cluster.routing.PlainShardIterator
- All Implemented Interfaces:
Comparable<ShardIterator>,Iterable<ShardRouting>,ShardIterator,ShardsIterator,Countable
-
Constructor Summary
ConstructorsConstructorDescriptionPlainShardIterator(ShardId shardId, 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, sizeActiveMethods inherited from class org.elasticsearch.common.util.PlainIterator
asList, iterator, nextOrNull, remaining, reset, sizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface org.elasticsearch.cluster.routing.ShardIterator
resetMethods 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
- Specified by:
equalsin interfaceShardsIterator- Overrides:
equalsin classObject
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceShardsIterator- Overrides:
hashCodein classObject
-
compareTo
- Specified by:
compareToin interfaceComparable<ShardIterator>
-