public interface ShardsIterator
Modifier and Type | Method and Description |
---|---|
int |
assignedReplicasIncludingRelocating()
Returns the number of replicas in this iterator that are not in the
ShardRoutingState.UNASSIGNED . |
Iterable<ShardRouting> |
asUnordered() |
boolean |
equals(Object other) |
int |
hashCode() |
ShardRouting |
nextOrNull()
Returns the next shard, or null if none available.
|
int |
remaining()
Return the number of shards remaining in this
ShardsIterator |
void |
reset()
Resets the iterator to its initial state.
|
int |
size()
The number of shard routing instances.
|
int |
sizeActive()
The number of active shard routing instances
|
void reset()
int size()
int sizeActive()
int assignedReplicasIncludingRelocating()
ShardRoutingState.UNASSIGNED
. The returned double-counts replicas
that are in the state ShardRoutingState.RELOCATING
ShardRouting nextOrNull()
int remaining()
ShardsIterator
Iterable<ShardRouting> asUnordered()
Copyright © 2009–2016. All rights reserved.