java.lang.Object
org.elasticsearch.common.util.PlainIterator<ShardRouting>
org.elasticsearch.cluster.routing.PlainShardsIterator
org.elasticsearch.cluster.routing.ShardIterator
- All Implemented Interfaces:
Comparable<ShardIterator>,Iterable<ShardRouting>,ShardsIterator
-
Constructor Summary
ConstructorsConstructorDescriptionShardIterator(ShardId shardId, List<ShardRouting> shards) Creates aShardIteratorinstance that iterates all shards of a givenshardId. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardIteratorallSearchableShards(ShardIterator shardIterator) intbooleaninthashCode()shardId()The shard id this group relates to.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.ShardsIterator
nextOrNull
-
Constructor Details
-
ShardIterator
Creates aShardIteratorinstance that iterates all shards of a givenshardId.- Parameters:
shardId- shard id of the groupshards- shards to iterate
-
-
Method Details
-
allSearchableShards
-
shardId
The shard id this group relates to. -
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>
-