org.elasticsearch.index.routing
Interface OperationRouting

All Known Implementing Classes:
PlainOperationRouting

public interface OperationRouting


Method Summary
 GroupShardsIterator deleteByQueryShards(ClusterState clusterState)
          Returns the shards grouped by shard
 ShardsIterator deleteShards(ClusterState clusterState, java.lang.String type, java.lang.String id)
           
 ShardsIterator getShards(ClusterState clusterState, java.lang.String type, java.lang.String id)
           
 ShardsIterator indexShards(ClusterState clusterState, java.lang.String type, java.lang.String id)
           
 GroupShardsIterator searchShards(ClusterState clusterState, java.lang.String queryHint)
           
 

Method Detail

indexShards

ShardsIterator indexShards(ClusterState clusterState,
                           java.lang.String type,
                           java.lang.String id)
                           throws IndexMissingException,
                                  IndexShardMissingException
Throws:
IndexMissingException
IndexShardMissingException

deleteShards

ShardsIterator deleteShards(ClusterState clusterState,
                            java.lang.String type,
                            java.lang.String id)
                            throws IndexMissingException,
                                   IndexShardMissingException
Throws:
IndexMissingException
IndexShardMissingException

getShards

ShardsIterator getShards(ClusterState clusterState,
                         java.lang.String type,
                         java.lang.String id)
                         throws IndexMissingException,
                                IndexShardMissingException
Throws:
IndexMissingException
IndexShardMissingException

deleteByQueryShards

GroupShardsIterator deleteByQueryShards(ClusterState clusterState)
                                        throws IndexMissingException
Returns the shards grouped by shard

Throws:
IndexMissingException

searchShards

GroupShardsIterator searchShards(ClusterState clusterState,
                                 @Nullable
                                 java.lang.String queryHint)
                                 throws IndexMissingException
Throws:
IndexMissingException