Class OperationRouting
java.lang.Object
org.elasticsearch.cluster.routing.OperationRouting
public class OperationRouting
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static Setting<java.lang.Boolean>
USE_ADAPTIVE_REPLICA_SELECTION_SETTING
-
Constructor Summary
Constructors Constructor Description OperationRouting(Settings settings, ClusterSettings clusterSettings)
-
Method Summary
Modifier and Type Method Description static int
generateShardId(IndexMetaData indexMetaData, java.lang.String id, java.lang.String routing)
ShardIterator
getShards(ClusterState clusterState, java.lang.String index, int shardId, java.lang.String preference)
ShardIterator
getShards(ClusterState clusterState, java.lang.String index, java.lang.String id, java.lang.String routing, java.lang.String preference)
protected IndexMetaData
indexMetaData(ClusterState clusterState, java.lang.String index)
protected IndexRoutingTable
indexRoutingTable(ClusterState clusterState, java.lang.String index)
ShardIterator
indexShards(ClusterState clusterState, java.lang.String index, java.lang.String id, java.lang.String routing)
GroupShardsIterator<ShardIterator>
searchShards(ClusterState clusterState, java.lang.String[] concreteIndices, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> routing, java.lang.String preference)
GroupShardsIterator<ShardIterator>
searchShards(ClusterState clusterState, java.lang.String[] concreteIndices, java.util.Map<java.lang.String,java.util.Set<java.lang.String>> routing, java.lang.String preference, ResponseCollectorService collectorService, java.util.Map<java.lang.String,java.lang.Long> nodeCounts)
ShardId
shardId(ClusterState clusterState, java.lang.String index, java.lang.String id, java.lang.String routing)
protected IndexShardRoutingTable
shards(ClusterState clusterState, java.lang.String index, java.lang.String id, java.lang.String routing)
-
Field Details
-
Constructor Details
-
Method Details
-
indexShards
public ShardIterator indexShards(ClusterState clusterState, java.lang.String index, java.lang.String id, @Nullable java.lang.String routing) -
getShards
public ShardIterator getShards(ClusterState clusterState, java.lang.String index, java.lang.String id, @Nullable java.lang.String routing, @Nullable java.lang.String preference) -
getShards
public ShardIterator getShards(ClusterState clusterState, java.lang.String index, int shardId, @Nullable java.lang.String preference) -
searchShards
public GroupShardsIterator<ShardIterator> searchShards(ClusterState clusterState, java.lang.String[] concreteIndices, @Nullable java.util.Map<java.lang.String,java.util.Set<java.lang.String>> routing, @Nullable java.lang.String preference) -
searchShards
public GroupShardsIterator<ShardIterator> searchShards(ClusterState clusterState, java.lang.String[] concreteIndices, @Nullable java.util.Map<java.lang.String,java.util.Set<java.lang.String>> routing, @Nullable java.lang.String preference, @Nullable ResponseCollectorService collectorService, @Nullable java.util.Map<java.lang.String,java.lang.Long> nodeCounts) -
indexRoutingTable
-
indexMetaData
-
shards
protected IndexShardRoutingTable shards(ClusterState clusterState, java.lang.String index, java.lang.String id, java.lang.String routing) -
shardId
public ShardId shardId(ClusterState clusterState, java.lang.String index, java.lang.String id, @Nullable java.lang.String routing) -
generateShardId
public static int generateShardId(IndexMetaData indexMetaData, @Nullable java.lang.String id, @Nullable java.lang.String routing)
-