Class OperationRouting
- java.lang.Object
-
- org.elasticsearch.cluster.routing.OperationRouting
-
public class OperationRouting extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static Setting<Boolean>USE_ADAPTIVE_REPLICA_SELECTION_SETTING
-
Constructor Summary
Constructors Constructor Description OperationRouting(Settings settings, ClusterSettings clusterSettings)
-
Method Summary
-
-
-
Constructor Detail
-
OperationRouting
public OperationRouting(Settings settings, ClusterSettings clusterSettings)
-
-
Method Detail
-
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)
-
indexRoutingTable
protected IndexRoutingTable indexRoutingTable(ClusterState clusterState, String index)
-
indexMetaData
protected IndexMetaData indexMetaData(ClusterState clusterState, String index)
-
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)
-
-