Interface ShardsIterator
-
- All Superinterfaces:
java.lang.Iterable<ShardRouting>
- All Known Subinterfaces:
ShardIterator
- All Known Implementing Classes:
PlainShardIterator,PlainShardsIterator,SearchShardIterator
public interface ShardsIterator extends java.lang.Iterable<ShardRouting>
Allows to iterate over unrelated shards.
-
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object other)java.util.List<ShardRouting>getShardRoutings()Returns theShardRoutings that this shards iterator holds.inthashCode()ShardRoutingnextOrNull()Returns the next shard, ornullif none available.intremaining()Return the number of shards remaining in thisShardsIteratorvoidreset()Resets the iterator to its initial state.intsize()The number of shard routing instances.intsizeActive()The number of active shard routing instances
-
-
-
Method Detail
-
reset
void reset()
Resets the iterator to its initial state.
-
size
int size()
The number of shard routing instances.- Returns:
- number of shard routing instances in this iterator
-
sizeActive
int sizeActive()
The number of active shard routing instances- Returns:
- number of active shard routing instances
-
nextOrNull
ShardRouting nextOrNull()
Returns the next shard, ornullif none available.
-
remaining
int remaining()
Return the number of shards remaining in thisShardsIterator- Returns:
- number of shard remaining
-
hashCode
int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
getShardRoutings
java.util.List<ShardRouting> getShardRoutings()
Returns theShardRoutings that this shards iterator holds.
-
-