OpenSearch/plugins
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
..
analysis-icu Upgrade to lucene 8.5.0 release (#54077) 2020-03-24 13:45:50 +00:00
analysis-kuromoji Upgrade to lucene 8.5.0 release (#54077) 2020-03-24 13:45:50 +00:00
analysis-nori Upgrade to lucene 8.5.0 release (#54077) 2020-03-24 13:45:50 +00:00
analysis-phonetic Upgrade to lucene 8.5.0 release (#54077) 2020-03-24 13:45:50 +00:00
analysis-smartcn Upgrade to lucene 8.5.0 release (#54077) 2020-03-24 13:45:50 +00:00
analysis-stempel Upgrade to lucene 8.5.0 release (#54077) 2020-03-24 13:45:50 +00:00
analysis-ukrainian Upgrade to lucene 8.5.0 release (#54077) 2020-03-24 13:45:50 +00:00
discovery-azure-classic Refactor global build info plugin to leverage JavaInstallationRegistry (#54026) 2020-03-23 15:30:10 -07:00
discovery-ec2 Refactor global build info plugin to leverage JavaInstallationRegistry (#54026) 2020-03-23 15:30:10 -07:00
discovery-gce Encore consistent compile options across all projects (#54120) 2020-03-25 08:24:21 -07:00
examples Refactor AliasOrIndex abstraction. (#54394) 2020-03-30 10:12:16 +02:00
ingest-attachment Upgrade Tika to 1.24 (#54130) (#54150) 2020-03-25 11:03:26 +02:00
mapper-annotated-text [7.x] Optimize which Rest resources are used by the Rest tests… (#53766) 2020-03-19 12:28:59 -05:00
mapper-murmur3 [7.x] Optimize which Rest resources are used by the Rest tests… (#53766) 2020-03-19 12:28:59 -05:00
mapper-size [7.x] Optimize which Rest resources are used by the Rest tests… (#53766) 2020-03-19 12:28:59 -05:00
repository-azure Revert "Use Azure Bulk Deletes in Azure Repository (#53919)" (#54089) (#54111) 2020-03-25 12:13:25 +01:00
repository-gcs Remove Unused Apache Http Dependency from GCS Repo Plugin (#54331) (#54342) 2020-03-27 15:10:19 +01:00
repository-hdfs Update the HDFS version used by HDFS Repo (#53693) (#54125) 2020-03-25 14:01:29 -04:00
repository-s3 Refactor global build info plugin to leverage JavaInstallationRegistry (#54026) 2020-03-23 15:30:10 -07:00
store-smb [7.x] Optimize which Rest resources are used by the Rest tests… (#53766) 2020-03-19 12:28:59 -05:00
transport-nio Move transport decoding and aggregation to server (#54360) 2020-03-27 14:13:10 -06:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00