OpenSearch/plugins
Martijn van Groningen 52859e3a52 Internal: refactored MetaData to split the concrete index name resolution to IndexNameExpressionResolver.
Changes in a nutshell:
* All expression logic is now encapsulated by ExpressionResolver interface.
* MetaData#convertFromWildcards() gets replaced by WildcardExpressionResolver.
* All of the indices expansion methods are being moved from MetaData class to the new IndexNameExpressionResolver class.
* All single index expansion optimisations are removed.

The logic for resolving a concrete index name from an expression has been moved from MetaData to IndexExpressionResolver. The logic has been cleaned up and simplified were was possible without breaking bwc.

Also the notion of aliasOrIndex has been changed to index expression.

The IndexNameExpressionResolver translates index name expressions into concrete indices. The list of index name expressions are first delegated to the known ExpressionResolverS. An ExpressionResolver is responsible for translating if possible an expression into another expression (possibly but not required this can be concrete indices or aliases) otherwise the expressions are left untouched. Concretely this means converting wildcard expressions into concrete indices or aliases, but in the future other implementations could convert expressions based on different rules.

To prevent many overloading of methods, DocumentRequest extends now from IndicesRequest. All implementation of DocumentRequest already did implement IndicesRequest indirectly.
2015-07-10 15:18:28 +02:00
..
analysis-icu Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
analysis-kuromoji Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
analysis-phonetic Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
analysis-smartcn Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
analysis-stempel Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
cloud-aws Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
cloud-azure Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
cloud-gce Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
delete-by-query Internal: refactored MetaData to split the concrete index name resolution to IndexNameExpressionResolver. 2015-07-10 15:18:28 +02:00
lang-javascript Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
lang-python Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00
pom.xml Make 2.0.0.beta1-SNAPSHOT the current version. 2015-07-09 21:24:32 +02:00