Class OperationRouting
java.lang.Object
org.elasticsearch.cluster.routing.OperationRouting
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
generateShardId(IndexMetadata indexMetadata, String id, String routing)
getShards(ClusterState clusterState, String index, int shardId, String preference)
static ShardIterator
getShards(ClusterState clusterState, ShardId shardId)
protected IndexMetadata
indexMetadata(ClusterState clusterState, String index)
protected IndexRoutingTable
indexRoutingTable(ClusterState clusterState, String index)
indexShards(ClusterState clusterState, String index, String id, String routing)
searchShards(ClusterState clusterState, String[] concreteIndices, Map<String,Set<String>> routing, String preference)
searchShards(ClusterState clusterState, String[] concreteIndices, Map<String,Set<String>> routing, String preference, ResponseCollectorService collectorService, Map<String,Long> nodeCounts)
shardId(ClusterState clusterState, String index, String id, String routing)
protected IndexShardRoutingTable
shards(ClusterState clusterState, String index, String id, String routing)
-
Field Details
-
USE_ADAPTIVE_REPLICA_SELECTION_SETTING
-
-
Constructor Details
-
OperationRouting
-
-
Method Details
-
indexShards
public ShardIterator indexShards(ClusterState clusterState, String index, String id, @Nullable String routing) -
getShards
public ShardIterator getShards(ClusterState clusterState, String index, String id, @Nullable String routing, @Nullable String preference) -
getShards
public ShardIterator getShards(ClusterState clusterState, String index, int shardId, @Nullable String preference) -
searchShards
public GroupShardsIterator<ShardIterator> searchShards(ClusterState clusterState, String[] concreteIndices, @Nullable Map<String,Set<String>> routing, @Nullable String preference) -
searchShards
public GroupShardsIterator<ShardIterator> searchShards(ClusterState clusterState, String[] concreteIndices, @Nullable Map<String,Set<String>> routing, @Nullable String preference, @Nullable ResponseCollectorService collectorService, @Nullable Map<String,Long> nodeCounts) -
getShards
-
indexRoutingTable
-
indexMetadata
-
shards
protected IndexShardRoutingTable shards(ClusterState clusterState, String index, String id, String routing) -
shardId
public ShardId shardId(ClusterState clusterState, String index, String id, @Nullable String routing) -
generateShardId
public static int generateShardId(IndexMetadata indexMetadata, @Nullable String id, @Nullable String routing)
-