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()
           
 com.google.common.collect.UnmodifiableIterator<ShardRouting> iterator()
           
 ShardRouting primaryShard()
           
 ShardId shardId()
           
 com.google.common.collect.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()

iterator

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

size

public int size()

shards

public com.google.common.collect.ImmutableList<ShardRouting> shards()

shardsIt

public ShardsIterator shardsIt()

shardsRandomIt

public ShardsIterator shardsRandomIt()

primaryShard

public ShardRouting primaryShard()

backupsShards

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