primaryShardIt
Returns an iterator only on the primary shard.
Iterable<ShardRouting>
IndexShardRoutingTable
encapsulates all instances of a single shard.
Each Elasticsearch index consists of multiple shards, each shard encapsulates
a disjoint set of the index data and each shard has one or more instances
referred to as replicas of a shard. Given that, this class encapsulates all
replicas (instances) for a single index shard.activeInitializingShardsIt(int seed)
activeInitializingShardsRankedIt(ResponseCollectorService collector,
Map<String,Long> nodeSearchCounts)
List
of active shardsboolean
true
iff all shards in the routing table are started otherwise false
List
of assigned shards, including relocation targetsboolean
List
of active shardsList
of all initializing shards, including target shards of relocationsgetByAllocationId(String allocationId)
List
of shardsint
getSize()
int
hashCode()
iterator()
onlyNodeSelectorActiveInitializingShardsIt(String[] nodeAttributes,
DiscoveryNodes discoveryNodes)
onlyNodeSelectorActiveInitializingShardsIt(String nodeAttributes,
DiscoveryNodes discoveryNodes)
preferAttributesActiveInitializingShardsIt(List<String> attributes,
DiscoveryNodes nodes)
preferAttributesActiveInitializingShardsIt(List<String> attributes,
DiscoveryNodes nodes,
int seed)
preferNodeActiveInitializingShardsIt(Set<String> nodeIds)
replicaShardsWithState(ShardRoutingState... states)
shardId()
shards()
List
of shardsshardsIt()
shardsIt(int seed)
shardsWithState(ShardRoutingState state)
int
size()
toString()
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
iterator
in interface Iterable<ShardRouting>
List
of shardsList
of shardsList
of shardsList
of shardsList
of active shardsList
of shardsList
of all initializing shards, including target shards of relocationsList
of shardsList
of active shardsList
of shardsList
of assigned shards, including relocation targetsList
of shardstrue
iff all shards in the routing table are started otherwise false