org.elasticsearch.cluster.routing
Class IndexShardRoutingTable

java.lang.Object
  extended by org.elasticsearch.cluster.routing.IndexShardRoutingTable
All Implemented Interfaces:
java.lang.Iterable<ShardRouting>

public class IndexShardRoutingTable
extends java.lang.Object
implements java.lang.Iterable<ShardRouting>


Nested Class Summary
static class IndexShardRoutingTable.Builder
           
 
Method Summary
 int countWithState(ShardRoutingState state)
           
 ShardId getShardId()
           
 org.elasticsearch.common.collect.ImmutableList<ShardRouting> getShards()
           
 int getSize()
           
 org.elasticsearch.common.collect.UnmodifiableIterator<ShardRouting> iterator()
           
 ShardRouting primaryShard()
           
 java.util.List<ShardRouting> replicaShards()
           
 ShardId shardId()
           
 org.elasticsearch.common.collect.ImmutableList<ShardRouting> shards()
           
 ShardsIterator shardsIt()
           
 ShardsIterator 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

shardId

public ShardId shardId()

getShardId

public ShardId getShardId()

iterator

public org.elasticsearch.common.collect.UnmodifiableIterator<ShardRouting> iterator()
Specified by:
iterator in interface java.lang.Iterable<ShardRouting>

size

public int size()

getSize

public int getSize()

shards

public org.elasticsearch.common.collect.ImmutableList<ShardRouting> shards()

getShards

public org.elasticsearch.common.collect.ImmutableList<ShardRouting> getShards()

countWithState

public int countWithState(ShardRoutingState state)

shardsIt

public ShardsIterator shardsIt()

shardsRandomIt

public ShardsIterator shardsRandomIt()

primaryShard

public ShardRouting primaryShard()

replicaShards

public java.util.List<ShardRouting> replicaShards()

shardsWithState

public java.util.List<ShardRouting> shardsWithState(ShardRoutingState... states)