OpenSearch/plugins/examples
Martijn van Groningen 4b4fbc160d
Refactor AliasOrIndex abstraction. (#54394)
Backport of #53982

In order to prepare the `AliasOrIndex` abstraction for the introduction of data streams,
the abstraction needs to be made more flexible, because currently it really can be only
an alias or an index.

* Renamed `AliasOrIndex` to `IndexAbstraction`.
* Introduced a `IndexAbstraction.Type` enum to indicate what a `IndexAbstraction` instance is.
* Replaced the `isAlias()` method that returns a boolean with the `getType()` method that returns the new Type enum.
* Moved `getWriteIndex()` up from the `IndexAbstraction.Alias` to the `IndexAbstraction` interface.
* Moved `getAliasName()` up from the `IndexAbstraction.Alias` to the `IndexAbstraction` interface and renamed it to `getName()`.
* Removed unnecessary casting to `IndexAbstraction.Alias` by just checking the `getType()` method.

Relates to #53100
2020-03-30 10:12:16 +02:00
..
custom-settings Testclusters: support for security and convert example plugins (#41864) 2019-05-08 14:04:00 +03:00
custom-significance-heuristic Move test of custom sig heuristic to plugin (#50891) (#51067) 2020-01-16 14:49:12 -05:00
custom-suggester Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
painless-whitelist Revert "Always test against default distribution when in a FIPS JVM (#51273)" 2020-01-22 12:15:57 -08:00
rescore Rename AtomicFieldData to LeafFieldData (#53554) 2020-03-17 12:30:12 +00:00
rest-handler RestHandlers declare handled routes (#52123) 2020-02-09 22:48:32 -07:00
script-expert-scoring Scripting: ScriptFactory not required by compile (#50344) (#50392) 2019-12-19 12:50:25 -07:00
security-authorization-engine Refactor AliasOrIndex abstraction. (#54394) 2020-03-30 10:12:16 +02:00
build.gradle Always test against default distribution when in a FIPS JVM (#51273) (#51333) 2020-01-23 14:54:57 -08:00