java.lang.Object
org.elasticsearch.cluster.routing.OperationRouting
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetShards(ClusterState clusterState, String index, int shardId, String preference) Shards to use for aGEToperation.static ShardIteratorgetShards(ClusterState clusterState, ShardId shardId) protected static IndexRoutingTableindexRoutingTable(ClusterState clusterState, String index) 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)
-
Field Details
-
USE_ADAPTIVE_REPLICA_SELECTION_SETTING
-
-
Constructor Details
-
OperationRouting
-
-
Method Details
-
getShards
public ShardIterator getShards(ClusterState clusterState, String index, String id, @Nullable String routing, @Nullable String preference) Shards to use for aGEToperation. -
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
-
shardId
-