Skip to content

Instantly share code, notes, and snippets.

@imotov
Created June 5, 2011 21:32
Show Gist options
  • Save imotov/1009444 to your computer and use it in GitHub Desktop.
Save imotov/1009444 to your computer and use it in GitHub Desktop.
public interface OperationRouting {
ShardIterator indexShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing) throws IndexMissingException, IndexShardMissingException;
ShardIterator deleteShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing) throws IndexMissingException, IndexShardMissingException;
GroupShardsIterator broadcastDeleteShards(ClusterState clusterState, String index) throws IndexMissingException, IndexShardMissingException;
ShardIterator getShards(ClusterState clusterState, String index, String type, String id, @Nullable String routing, @Nullable String preference) throws IndexMissingException, IndexShardMissingException;
GroupShardsIterator deleteByQueryShards(ClusterState clusterState, String index, @Nullable Set<String> routing) throws IndexMissingException;
GroupShardsIterator searchShards(ClusterState clusterState, String[] indices, String[] concreteIndices, @Nullable String queryHint, @Nullable Set<String> routing, @Nullable String preference) throws IndexMissingException;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment