Interface ShardIterator
-
- All Superinterfaces:
Comparable<ShardIterator>,Iterable<ShardRouting>,ShardsIterator
- All Known Implementing Classes:
PlainShardIterator,SearchShardIterator
public interface ShardIterator extends ShardsIterator, Comparable<ShardIterator>
Allows to iterate over a set of shard instances (routing) within a shard id group.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreset()Resets the iterator.ShardIdshardId()The shard id this group relates to.-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Methods inherited from interface org.elasticsearch.cluster.routing.ShardsIterator
equals, getShardRoutings, hashCode, nextOrNull, remaining, size, sizeActive
-
-
-
-
Method Detail
-
shardId
ShardId shardId()
The shard id this group relates to.
-
reset
void reset()
Resets the iterator.- Specified by:
resetin interfaceShardsIterator
-
-