|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.cluster.routing.IndexRoutingTable
@Immutable public class IndexRoutingTable
Nested Class Summary | |
---|---|
static class |
IndexRoutingTable.Builder
|
Method Summary | |
---|---|
boolean |
allPrimaryShardsActive()
|
boolean |
allPrimaryShardsUnassigned()
|
java.lang.String |
getIndex()
|
org.elasticsearch.common.collect.ImmutableMap<java.lang.Integer,IndexShardRoutingTable> |
getShards()
|
GroupShardsIterator |
groupByAllIt()
A groups shards iterator where each groups is a single ShardRouting and a group
is created for each shard routing. |
GroupShardsIterator |
groupByShardsIt()
A group shards iterator where each group ( ShardIterator
is an iterator across shard replication group. |
java.lang.String |
index()
|
org.elasticsearch.common.collect.UnmodifiableIterator<IndexShardRoutingTable> |
iterator()
|
int |
numberOfNodesShardsAreAllocatedOn(java.lang.String... excludedNodes)
|
java.lang.String |
prettyPrint()
|
int |
primaryShardsActive()
|
int |
primaryShardsUnassigned()
|
ShardsIterator |
randomAllShardsIt()
An iterator over all shards (including replicas). |
IndexShardRoutingTable |
shard(int shardId)
|
org.elasticsearch.common.collect.ImmutableMap<java.lang.Integer,IndexShardRoutingTable> |
shards()
|
java.util.List<ShardRouting> |
shardsWithState(ShardRoutingState... states)
|
void |
validate()
|
void |
validate(RoutingTableValidation validation,
MetaData metaData)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.String index()
public java.lang.String getIndex()
public void validate(RoutingTableValidation validation, MetaData metaData)
public org.elasticsearch.common.collect.UnmodifiableIterator<IndexShardRoutingTable> iterator()
iterator
in interface java.lang.Iterable<IndexShardRoutingTable>
public int numberOfNodesShardsAreAllocatedOn(java.lang.String... excludedNodes)
public org.elasticsearch.common.collect.ImmutableMap<java.lang.Integer,IndexShardRoutingTable> shards()
public org.elasticsearch.common.collect.ImmutableMap<java.lang.Integer,IndexShardRoutingTable> getShards()
public IndexShardRoutingTable shard(int shardId)
public boolean allPrimaryShardsActive()
public int primaryShardsActive()
public boolean allPrimaryShardsUnassigned()
public int primaryShardsUnassigned()
public java.util.List<ShardRouting> shardsWithState(ShardRoutingState... states)
public ShardsIterator randomAllShardsIt()
public GroupShardsIterator groupByShardsIt()
ShardIterator
is an iterator across shard replication group.
public GroupShardsIterator groupByAllIt()
ShardRouting
and a group
is created for each shard routing.
This basically means that components that use the GroupShardsIterator
will iterate
over *all* the shards (all the replicas) within the index.
public void validate() throws RoutingValidationException
RoutingValidationException
public java.lang.String prettyPrint()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |