|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.cluster.routing.IndexShardRoutingTable
public class IndexShardRoutingTable
Nested Class Summary | |
---|---|
static class |
IndexShardRoutingTable.Builder
|
Method Summary | |
---|---|
boolean |
allocatedPostApi()
Has this shard group primary shard been allocated post API creation. |
int |
countWithState(ShardRoutingState state)
|
ShardId |
getShardId()
|
org.elasticsearch.common.collect.ImmutableList<ShardRouting> |
getShards()
|
int |
getSize()
|
org.elasticsearch.common.collect.UnmodifiableIterator<ShardRouting> |
iterator()
|
IndexShardRoutingTable |
normalizeVersions()
Normalizes all shard routings to the same version. |
ShardIterator |
preferLocalShardsIt(java.lang.String nodeId)
Prefers execution on the local node if applicable. |
ShardRouting |
primaryShard()
|
ShardIterator |
primaryShardIt()
Returns an iterator only on the primary shard. |
java.util.List<ShardRouting> |
replicaShards()
|
ShardId |
shardId()
|
org.elasticsearch.common.collect.ImmutableList<ShardRouting> |
shards()
|
ShardIterator |
shardsIt()
Returns a regular shard iterator. |
ShardIterator |
shardsIt(int index)
|
ShardIterator |
shardsRandomIt()
Returns a random shards iterator. |
java.util.List<ShardRouting> |
shardsWithState(ShardRoutingState... states)
|
int |
size()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public IndexShardRoutingTable normalizeVersions()
public boolean allocatedPostApi()
public ShardId shardId()
public ShardId getShardId()
public org.elasticsearch.common.collect.UnmodifiableIterator<ShardRouting> iterator()
iterator
in interface java.lang.Iterable<ShardRouting>
public int size()
public int getSize()
public org.elasticsearch.common.collect.ImmutableList<ShardRouting> shards()
public org.elasticsearch.common.collect.ImmutableList<ShardRouting> getShards()
public int countWithState(ShardRoutingState state)
public ShardIterator shardsIt()
public ShardIterator shardsIt(int index)
public ShardIterator primaryShardIt()
public ShardIterator preferLocalShardsIt(java.lang.String nodeId)
public ShardIterator shardsRandomIt()
public ShardRouting primaryShard()
public java.util.List<ShardRouting> replicaShards()
public java.util.List<ShardRouting> shardsWithState(ShardRoutingState... states)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |