public class PlainOperationRouting extends AbstractComponent implements OperationRouting
componentSettings, logger, settings| Constructor and Description |
|---|
PlainOperationRouting(Settings indexSettings,
HashFunction hashFunction,
AwarenessAllocationDecider awarenessAllocationDecider) |
nodeName@Inject public PlainOperationRouting(Settings indexSettings, HashFunction hashFunction, AwarenessAllocationDecider awarenessAllocationDecider)
public ShardIterator indexShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing) throws IndexMissingException, IndexShardMissingException
indexShards in interface OperationRoutingIndexMissingExceptionIndexShardMissingExceptionpublic ShardIterator deleteShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing) throws IndexMissingException, IndexShardMissingException
deleteShards in interface OperationRoutingIndexMissingExceptionIndexShardMissingExceptionpublic ShardIterator getShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing, @Nullable String preference) throws IndexMissingException, IndexShardMissingException
getShards in interface OperationRoutingIndexMissingExceptionIndexShardMissingExceptionpublic ShardIterator getShards(ClusterState clusterState, String index, int shardId, @Nullable String preference) throws IndexMissingException, IndexShardMissingException
getShards in interface OperationRoutingIndexMissingExceptionIndexShardMissingExceptionpublic GroupShardsIterator broadcastDeleteShards(ClusterState clusterState, String index) throws IndexMissingException
broadcastDeleteShards in interface OperationRoutingIndexMissingExceptionpublic GroupShardsIterator deleteByQueryShards(ClusterState clusterState, String index, @Nullable Set<String> routing) throws IndexMissingException
deleteByQueryShards in interface OperationRoutingIndexMissingExceptionpublic int searchShardsCount(ClusterState clusterState, String[] indices, String[] concreteIndices, @Nullable Map<String,Set<String>> routing, @Nullable String preference) throws IndexMissingException
searchShardsCount in interface OperationRoutingIndexMissingExceptionpublic GroupShardsIterator searchShards(ClusterState clusterState, String[] indices, String[] concreteIndices, @Nullable Map<String,Set<String>> routing, @Nullable String preference) throws IndexMissingException
searchShards in interface OperationRoutingIndexMissingExceptionpublic IndexMetaData indexMetaData(ClusterState clusterState, String index)
protected IndexRoutingTable indexRoutingTable(ClusterState clusterState, String index)
protected IndexShardRoutingTable shards(ClusterState clusterState, String index, String type, String id, String routing)
protected IndexShardRoutingTable shards(ClusterState clusterState, String index, int shardId)
protected int hash(String routing)
Copyright © 2009–2016. All rights reserved.