Modifier and Type | Method and Description |
---|---|
String[] |
MetaData.concreteIndices(IndicesOptions indicesOptions,
String... aliasesOrIndices)
Translates the provided indices or aliases, eventually containing wildcard expressions, into actual indices.
|
String[] |
MetaData.concreteIndices(String[] indices)
Deprecated.
use
MetaData.concreteIndices(org.elasticsearch.action.support.IndicesOptions, String...) instead and
be explicit about indices options to be used for indices resolution |
String |
MetaData.concreteSingleIndex(String indexOrAlias,
IndicesOptions indicesOptions)
Utility method that allows to resolve an index or alias to its corresponding single concrete index.
|
Modifier and Type | Method and Description |
---|---|
GroupShardsIterator |
RoutingTable.activePrimaryShardsGrouped(String[] indices,
boolean includeEmpty)
All the *active* primary shards for the provided indices grouped (each group is a single element, consisting
of the primary shard).
|
GroupShardsIterator |
RoutingTable.allActiveShardsGrouped(String[] indices,
boolean includeEmpty) |
GroupShardsIterator |
RoutingTable.allActiveShardsGrouped(String[] indices,
boolean includeEmpty,
boolean includeRelocationTargets)
Return GroupShardsIterator where each active shard routing has it's own shard iterator.
|
GroupShardsIterator |
RoutingTable.allAssignedShardsGrouped(String[] indices,
boolean includeEmpty) |
GroupShardsIterator |
RoutingTable.allAssignedShardsGrouped(String[] indices,
boolean includeEmpty,
boolean includeRelocationTargets)
Return GroupShardsIterator where each assigned shard routing has it's own shard iterator.
|
List<ShardRouting> |
RoutingTable.allShards(String... indices)
All the shards (replicas) for the provided indices.
|
GroupShardsIterator |
RoutingTable.allShardsGrouped(String... indices)
All the shards (primary + replicas) for the provided indices grouped (each group is a single element, consisting
of the shard).
|
RoutingTable.Builder |
RoutingTable.Builder.updateNumberOfReplicas(int numberOfReplicas,
String... indices) |
Modifier and Type | Method and Description |
---|---|
GroupShardsIterator |
OperationRouting.broadcastDeleteShards(ClusterState clusterState,
String index) |
GroupShardsIterator |
OperationRouting.deleteByQueryShards(ClusterState clusterState,
String index,
Set<String> routing) |
ShardIterator |
OperationRouting.deleteShards(ClusterState clusterState,
String index,
String type,
String id,
String routing) |
ShardIterator |
OperationRouting.getShards(ClusterState clusterState,
String index,
int shardId,
String preference) |
ShardIterator |
OperationRouting.getShards(ClusterState clusterState,
String index,
String type,
String id,
String routing,
String preference) |
ShardIterator |
OperationRouting.indexShards(ClusterState clusterState,
String index,
String type,
String id,
String routing) |
GroupShardsIterator |
OperationRouting.searchShards(ClusterState clusterState,
String[] indices,
String[] concreteIndices,
Map<String,Set<String>> routing,
String preference) |
int |
OperationRouting.searchShardsCount(ClusterState clusterState,
String[] indices,
String[] concreteIndices,
Map<String,Set<String>> routing,
String preference) |
Modifier and Type | Method and Description |
---|---|
GroupShardsIterator |
PlainOperationRouting.broadcastDeleteShards(ClusterState clusterState,
String index) |
GroupShardsIterator |
PlainOperationRouting.deleteByQueryShards(ClusterState clusterState,
String index,
Set<String> routing) |
ShardIterator |
PlainOperationRouting.deleteShards(ClusterState clusterState,
String index,
String type,
String id,
String routing) |
ShardIterator |
PlainOperationRouting.getShards(ClusterState clusterState,
String index,
int shardId,
String preference) |
ShardIterator |
PlainOperationRouting.getShards(ClusterState clusterState,
String index,
String type,
String id,
String routing,
String preference) |
ShardIterator |
PlainOperationRouting.indexShards(ClusterState clusterState,
String index,
String type,
String id,
String routing) |
GroupShardsIterator |
PlainOperationRouting.searchShards(ClusterState clusterState,
String[] indices,
String[] concreteIndices,
Map<String,Set<String>> routing,
String preference) |
int |
PlainOperationRouting.searchShardsCount(ClusterState clusterState,
String[] indices,
String[] concreteIndices,
Map<String,Set<String>> routing,
String preference) |
Modifier and Type | Method and Description |
---|---|
IndexService |
IndicesService.indexServiceSafe(String index)
Returns an IndexService for the specified index if exists otherwise a
IndexMissingException is thrown. |
Copyright © 2009–2015. All rights reserved.