|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.cluster.routing.IndexShardRoutingTable
public class IndexShardRoutingTable
Nested Class Summary | |
---|---|
static class |
IndexShardRoutingTable.Builder
|
Method Summary | |
---|---|
org.elasticsearch.common.collect.ImmutableList<ShardRouting> |
activeShards()
|
ShardIterator |
activeShardsIt()
|
ShardIterator |
activeShardsIt(int index)
|
ShardIterator |
activeShardsRandomIt()
|
boolean |
allocatedPostApi()
Has this shard group primary shard been allocated post API creation. |
org.elasticsearch.common.collect.ImmutableList<ShardRouting> |
assignedShards()
|
ShardIterator |
assignedShardsIt()
|
ShardIterator |
assignedShardsIt(int index)
|
ShardIterator |
assignedShardsRandomIt()
|
int |
countWithState(ShardRoutingState state)
|
org.elasticsearch.common.collect.ImmutableList<ShardRouting> |
getActiveShards()
|
org.elasticsearch.common.collect.ImmutableList<ShardRouting> |
getAssignedShards()
|
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 |
preferNodeActiveShardsIt(java.lang.String nodeId)
Prefers execution on the provided node if applicable. |
ShardIterator |
preferNodeAssignedShardsIt(java.lang.String nodeId)
Prefers execution on the provided node if applicable. |
ShardIterator |
preferNodeShardsIt(java.lang.String nodeId)
Prefers execution on the provided 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()
|
ShardIterator |
shardsIt(int index)
|
ShardIterator |
shardsRandomIt()
|
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 org.elasticsearch.common.collect.ImmutableList<ShardRouting> activeShards()
public org.elasticsearch.common.collect.ImmutableList<ShardRouting> getActiveShards()
public org.elasticsearch.common.collect.ImmutableList<ShardRouting> assignedShards()
public org.elasticsearch.common.collect.ImmutableList<ShardRouting> getAssignedShards()
public int countWithState(ShardRoutingState state)
public ShardIterator shardsRandomIt()
public ShardIterator shardsIt()
public ShardIterator shardsIt(int index)
public ShardIterator activeShardsRandomIt()
public ShardIterator activeShardsIt()
public ShardIterator activeShardsIt(int index)
public ShardIterator assignedShardsRandomIt()
public ShardIterator assignedShardsIt()
public ShardIterator assignedShardsIt(int index)
public ShardIterator primaryShardIt()
public ShardIterator preferNodeShardsIt(java.lang.String nodeId)
public ShardIterator preferNodeActiveShardsIt(java.lang.String nodeId)
public ShardIterator preferNodeAssignedShardsIt(java.lang.String nodeId)
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 |