public class PlainShardsIterator extends Object implements ShardsIterator
ShardsIterator that iterates a list or sub-list of
shard routings.| コンストラクタと説明 |
|---|
PlainShardsIterator(List<ShardRouting> shards) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
int |
assignedReplicasIncludingRelocating()
Returns the number of replicas in this iterator that are not in the
ShardRoutingState.UNASSIGNED. |
Iterable<ShardRouting> |
asUnordered() |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodepublic PlainShardsIterator(List<ShardRouting> shards)
public void reset()
ShardsIteratorreset インタフェース内 ShardsIteratorpublic int remaining()
ShardsIteratorShardsIteratorremaining インタフェース内 ShardsIteratorpublic ShardRouting nextOrNull()
ShardsIteratornextOrNull インタフェース内 ShardsIteratorpublic int size()
ShardsIteratorsize インタフェース内 ShardsIteratorpublic int sizeActive()
ShardsIteratorsizeActive インタフェース内 ShardsIteratorpublic int assignedReplicasIncludingRelocating()
ShardsIteratorShardRoutingState.UNASSIGNED. The returned double-counts replicas
that are in the state ShardRoutingState.RELOCATINGassignedReplicasIncludingRelocating インタフェース内 ShardsIteratorpublic Iterable<ShardRouting> asUnordered()
asUnordered インタフェース内 ShardsIteratorCopyright © 2009–2016. All rights reserved.