public class OperationRouting extends AbstractComponent
deprecationLogger, logger, settings
Constructor and Description |
---|
OperationRouting(Settings settings,
AwarenessAllocationDecider awarenessAllocationDecider) |
Modifier and Type | Method and Description |
---|---|
ShardIterator |
getShards(ClusterState clusterState,
String index,
int shardId,
String preference) |
ShardIterator |
getShards(ClusterState clusterState,
String index,
String type,
String id,
String routing,
String preference) |
protected int |
hash(HashFunction hashFunction,
String routing) |
protected int |
hash(HashFunction hashFunction,
String type,
String id)
Deprecated.
|
protected IndexRoutingTable |
indexRoutingTable(ClusterState clusterState,
String index) |
ShardIterator |
indexShards(ClusterState clusterState,
String index,
String type,
String id,
String routing) |
GroupShardsIterator |
searchShards(ClusterState clusterState,
String[] concreteIndices,
Map<String,Set<String>> routing,
String preference) |
int |
searchShardsCount(ClusterState clusterState,
String[] concreteIndices,
Map<String,Set<String>> routing) |
ShardId |
shardId(ClusterState clusterState,
String index,
String type,
String id,
String routing) |
protected IndexShardRoutingTable |
shards(ClusterState clusterState,
String index,
String type,
String id,
String routing) |
logDeprecatedSetting, logRemovedSetting, nodeName
@Inject public OperationRouting(Settings settings, AwarenessAllocationDecider awarenessAllocationDecider)
public ShardIterator indexShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing)
public ShardIterator getShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing, @Nullable String preference)
public ShardIterator getShards(ClusterState clusterState, String index, int shardId, @Nullable String preference)
public int searchShardsCount(ClusterState clusterState, String[] concreteIndices, @Nullable Map<String,Set<String>> routing)
public GroupShardsIterator searchShards(ClusterState clusterState, String[] concreteIndices, @Nullable Map<String,Set<String>> routing, @Nullable String preference)
protected IndexRoutingTable indexRoutingTable(ClusterState clusterState, String index)
protected IndexShardRoutingTable shards(ClusterState clusterState, String index, String type, String id, String routing)
public ShardId shardId(ClusterState clusterState, String index, String type, String id, @Nullable String routing)
protected int hash(HashFunction hashFunction, String routing)
@Deprecated protected int hash(HashFunction hashFunction, String type, String id)
Copyright © 2009–2016. All rights reserved.