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
 java.util.List<ShardRouting> backupsShards()
           
 ShardId getShardId()
           
 ImmutableList<ShardRouting> getShards()
           
 int getSize()
           
 UnmodifiableIterator<ShardRouting> iterator()
           
 ShardRouting primaryShard()
           
 ShardId shardId()
           
 ImmutableList<ShardRouting> shards()
           
 ShardsIterator shardsIt()
           
 ShardsIterator shardsRandomIt()
           
 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 UnmodifiableIterator<ShardRouting> iterator()
Specified by:
iterator in interface java.lang.Iterable<ShardRouting>

size

public int size()

getSize

public int getSize()

shards

public ImmutableList<ShardRouting> shards()

getShards

public ImmutableList<ShardRouting> getShards()

shardsIt

public ShardsIterator shardsIt()

shardsRandomIt

public ShardsIterator shardsRandomIt()

primaryShard

public ShardRouting primaryShard()

backupsShards

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