primaryShardIt
Returns an iterator only on the primary shard.
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 all unpromotable shards, including unassigned shardsList
of assigned shards, including relocation targetsboolean
int
List
of all initializing shards, including target shards of relocationsgetByAllocationId(String allocationId)
int
int
hashCode()
boolean
onlyNodeSelectorActiveInitializingShardsIt(String[] nodeAttributes,
DiscoveryNodes discoveryNodes)
onlyNodeSelectorActiveInitializingShardsIt(String nodeAttributes,
DiscoveryNodes discoveryNodes)
preferNodeActiveInitializingShardsIt(Set<String> nodeIds)
replicaShardsWithState(ShardRoutingState... states)
shard(int idx)
shardId()
shardsIt(int seed)
shardsWithState(ShardRoutingState state)
int
size()
toString()
List
of assigned unpromotable shards, including relocation targetsList
of active shardsList
of shardsList
of all initializing shards, including target shards of relocationsList
of shardsList
of assigned shards, including relocation targetsList
of shardsList
of assigned unpromotable shards, including relocation targetsList
of shardsList
of all unpromotable shards, including unassigned shardsList
of shardstrue
iff all shards in the routing table are started otherwise false