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 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, iterator, nextOrNull, remaining, reset, size, sizeActive
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
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 Detail
-
PlainShardIterator
public PlainShardIterator(ShardId shardId, java.util.List<ShardRouting> shards)
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 Detail
-
shardId
public ShardId shardId()
Description copied from interface:ShardIterator
The shard id this group relates to.- Specified by:
shardId
in interfaceShardIterator
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equals
in interfaceShardsIterator
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceShardsIterator
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(ShardIterator o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<ShardIterator>
-
-