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
ConstructorDescriptionPlainShardIterator
(ShardId shardId, List<ShardRouting> shards) Creates aPlainShardIterator
instance 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, 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.ShardIterator
reset
Methods inherited from interface org.elasticsearch.cluster.routing.ShardsIterator
getShardRoutings, nextOrNull, remaining, size, sizeActive
-
Constructor Details
-
PlainShardIterator
Creates aPlainShardIterator
instance 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:ShardIterator
The shard id this group relates to.- Specified by:
shardId
in interfaceShardIterator
-
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>
-