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 aShardIterator
instance that iterates all shards of a givenshardId
. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardIterator
allSearchableShards
(ShardIterator shardIterator) int
boolean
int
hashCode()
shardId()
The shard id this group relates to.Methods inherited from class org.elasticsearch.cluster.routing.PlainShardsIterator
getShardRoutings, sizeActive
Methods inherited from class org.elasticsearch.common.util.PlainIterator
asList, iterator, nextOrNull, remaining, reset, size
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface org.elasticsearch.cluster.routing.ShardsIterator
nextOrNull
-
Constructor Details
-
ShardIterator
Creates aShardIterator
instance 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:
equals
in interfaceShardsIterator
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceShardsIterator
- Overrides:
hashCode
in classObject
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ShardIterator>
-