org.elasticsearch.cluster.routing
Class IndexShardRoutingTable
java.lang.Object
org.elasticsearch.cluster.routing.IndexShardRoutingTable
- All Implemented Interfaces:
- java.lang.Iterable<ShardRouting>
public class IndexShardRoutingTable
- extends java.lang.Object
- implements java.lang.Iterable<ShardRouting>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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()