java.lang.Object
org.elasticsearch.cluster.routing.OperationRouting
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetShards(ProjectState projectState, String index, int shardId, String preference) Shards to use for aGEToperation.static ShardIteratorgetShards(RoutingTable routingTable, ShardId shardId) protected static IndexRoutingTableindexRoutingTable(RoutingTable routingTable, String index) searchShards(ProjectState projectState, String[] concreteIndices, Map<String, Set<String>> routing, String preference) searchShards(ProjectState projectState, String[] concreteIndices, Map<String, Set<String>> routing, String preference, ResponseCollectorService collectorService, Map<String, Long> nodeCounts) static ShardIdshardId(ProjectMetadata projectMetadata, String index, String id, String routing)
-
Field Details
-
USE_ADAPTIVE_REPLICA_SELECTION_SETTING
-
-
Constructor Details
-
OperationRouting
-
-
Method Details
-
getShards
public ShardIterator getShards(ProjectState projectState, String index, String id, @Nullable String routing, @Nullable String preference) Shards to use for aGEToperation.- Returns:
- A shard iterator that can be used for GETs, or null if e.g. due to preferences no match is found.
-
getShards
public ShardIterator getShards(ProjectState projectState, String index, int shardId, @Nullable String preference) -
searchShards
-
searchShards
-
getShards
-
indexRoutingTable
-
shardId
-