org.elasticsearch.cluster.routing.operation
Interface OperationRouting

All Known Implementing Classes:
PlainOperationRouting

public interface OperationRouting


Method Summary
 GroupShardsIterator broadcastDeleteShards(ClusterState clusterState, String index)
           
 GroupShardsIterator deleteByQueryShards(ClusterState clusterState, String index, Set<String> routing)
           
 ShardIterator deleteShards(ClusterState clusterState, String index, String type, String id, String routing)
           
 ShardIterator getShards(ClusterState clusterState, String index, int shardId, String preference)
           
 ShardIterator getShards(ClusterState clusterState, String index, String type, String id, String routing, String preference)
           
 ShardIterator indexShards(ClusterState clusterState, String index, String type, String id, String routing)
           
 GroupShardsIterator searchShards(ClusterState clusterState, String[] indices, String[] concreteIndices, String queryHint, Map<String,Set<String>> routing, String preference)
           
 int searchShardsCount(ClusterState clusterState, String[] indices, String[] concreteIndices, String queryHint, Map<String,Set<String>> routing, String preference)
           
 

Method Detail

indexShards

ShardIterator indexShards(ClusterState clusterState,
                          String index,
                          String type,
                          String id,
                          @Nullable
                          String routing)
                          throws IndexMissingException,
                                 IndexShardMissingException
Throws:
IndexMissingException
IndexShardMissingException

deleteShards

ShardIterator deleteShards(ClusterState clusterState,
                           String index,
                           String type,
                           String id,
                           @Nullable
                           String routing)
                           throws IndexMissingException,
                                  IndexShardMissingException
Throws:
IndexMissingException
IndexShardMissingException

broadcastDeleteShards

GroupShardsIterator broadcastDeleteShards(ClusterState clusterState,
                                          String index)
                                          throws IndexMissingException,
                                                 IndexShardMissingException
Throws:
IndexMissingException
IndexShardMissingException

getShards

ShardIterator getShards(ClusterState clusterState,
                        String index,
                        String type,
                        String id,
                        @Nullable
                        String routing,
                        @Nullable
                        String preference)
                        throws IndexMissingException,
                               IndexShardMissingException
Throws:
IndexMissingException
IndexShardMissingException

getShards

ShardIterator getShards(ClusterState clusterState,
                        String index,
                        int shardId,
                        @Nullable
                        String preference)
                        throws IndexMissingException,
                               IndexShardMissingException
Throws:
IndexMissingException
IndexShardMissingException

deleteByQueryShards

GroupShardsIterator deleteByQueryShards(ClusterState clusterState,
                                        String index,
                                        @Nullable
                                        Set<String> routing)
                                        throws IndexMissingException
Throws:
IndexMissingException

searchShardsCount

int searchShardsCount(ClusterState clusterState,
                      String[] indices,
                      String[] concreteIndices,
                      @Nullable
                      String queryHint,
                      @Nullable
                      Map<String,Set<String>> routing,
                      @Nullable
                      String preference)
                      throws IndexMissingException
Throws:
IndexMissingException

searchShards

GroupShardsIterator searchShards(ClusterState clusterState,
                                 String[] indices,
                                 String[] concreteIndices,
                                 @Nullable
                                 String queryHint,
                                 @Nullable
                                 Map<String,Set<String>> routing,
                                 @Nullable
                                 String preference)
                                 throws IndexMissingException
Throws:
IndexMissingException


Copyright © 2009-2012. All Rights Reserved.