Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2024-09-14 04:28:03 +08:00
|
|
|
* or more contributor license agreements. Licensed under the "Elastic License
|
|
|
|
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
|
|
|
|
* Public License v 1"; you may not use this file except in compliance with, at
|
|
|
|
* your election, the "Elastic License 2.0", the "GNU Affero General Public
|
|
|
|
* License v3.0 only", or the "Server Side Public License, v 1".
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
*/
|
|
|
|
|
2024-11-29 05:25:02 +08:00
|
|
|
import org.elasticsearch.internal.CompletionsPostingsFormatExtension;
|
2023-09-14 11:48:09 +08:00
|
|
|
import org.elasticsearch.plugins.internal.RestExtension;
|
2023-01-12 22:42:49 +08:00
|
|
|
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
/** The Elasticsearch Server Module. */
|
|
|
|
module org.elasticsearch.server {
|
|
|
|
requires java.logging;
|
|
|
|
requires java.security.jgss;
|
|
|
|
requires java.sql;
|
|
|
|
requires java.management;
|
|
|
|
requires jdk.unsupported;
|
2023-02-07 21:18:25 +08:00
|
|
|
requires java.net.http; // required by ingest-geoip's dependency maxmind.geoip2 https://github.com/elastic/elasticsearch/issues/93553
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
|
|
|
|
requires org.elasticsearch.cli;
|
|
|
|
requires org.elasticsearch.base;
|
2024-02-08 07:27:09 +08:00
|
|
|
requires org.elasticsearch.nativeaccess;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
requires org.elasticsearch.geo;
|
|
|
|
requires org.elasticsearch.lz4;
|
|
|
|
requires org.elasticsearch.securesm;
|
|
|
|
requires org.elasticsearch.xcontent;
|
2022-06-13 16:25:54 +08:00
|
|
|
requires org.elasticsearch.logging;
|
2023-01-14 16:49:37 +08:00
|
|
|
requires org.elasticsearch.plugin;
|
|
|
|
requires org.elasticsearch.plugin.analysis;
|
2023-04-22 03:04:49 +08:00
|
|
|
requires org.elasticsearch.grok;
|
Fork TDigest library (#96086)
* Initial import for TDigest forking.
* Fix MedianTest.
More work needed for TDigestPercentile*Tests and the TDigestTest (and
the rest of the tests) in the tdigest lib to pass.
* Fix Dist.
* Fix AVLTreeDigest.quantile to match Dist for uniform centroids.
* Update docs/changelog/96086.yaml
* Fix `MergingDigest.quantile` to match `Dist` on uniform distribution.
* Add merging to TDigestState.hashCode and .equals.
Remove wrong asserts from tests and MergingDigest.
* Fix style violations for tdigest library.
* Fix typo.
* Fix more style violations.
* Fix more style violations.
* Fix remaining style violations in tdigest library.
* Update results in docs based on the forked tdigest.
* Fix YAML tests in aggs module.
* Fix YAML tests in x-pack/plugin.
* Skip failing V7 compat tests in modules/aggregations.
* Fix TDigest library unittests.
Remove redundant serializing interfaces from the library.
* Remove YAML test versions for older releases.
These tests don't address compatibility issues in mixed cluster tests as
the latter contain a mix of older and newer nodes, so the output depends
on which node is picked as a data node since the forked TDigest library
is not backwards compatible (produces slightly different results).
* Fix test failures in docs and mixed cluster.
* Reduce buffer sizes in MergingDigest to avoid oom.
* Exclude more failing V7 compatibility tests.
* Update results for JdbcCsvSpecIT tests.
* Update results for JdbcDocCsvSpecIT tests.
* Revert unrelated change.
* More test fixes.
* Use version skips instead of blacklisting in mixed cluster tests.
* Switch TDigestState back to AVLTreeDigest.
* Update docs and tests with AVLTreeDigest output.
* Update flaky test.
* Remove dead code, esp around tracking of incoming data.
* Update docs/changelog/96086.yaml
* Delete docs/changelog/96086.yaml
* Remove explicit compression calls.
This was added to prevent concurrency tests from failing, but it leads
to reduces precision. Submit this to see if the concurrency tests are
still failing.
* Revert "Remove explicit compression calls."
This reverts commit 5352c96f656b9cdc63f0f673c983150bea35c7ed.
* Remove explicit compression calls to MedianAbsoluteDeviation input.
* Add unittests for AVL and merging digest accuracy.
* Fix spotless violations.
* Delete redundant tests and benchmarks.
* Fix spotless violation.
* Use the old implementation of AVLTreeDigest.
The latest library version is 50% slower and less accurate, as verified
by ComparisonTests.
* Update docs with latest percentile results.
* Update docs with latest percentile results.
* Remove repeated compression calls.
* Update more percentile results.
* Use approximate percentile values in integration tests.
This helps with mixed cluster tests, where some of the tests where
blocked.
* Fix expected percentile value in test.
* Revert in-place node updates in AVL tree.
Update quantile calculations between centroids and min/max values to
match v.3.2.
* Add SortingDigest and HybridDigest.
The SortingDigest tracks all samples in an ArrayList that
gets sorted for quantile calculations. This approach
provides perfectly accurate results and is the most
efficient implementation for up to millions of samples,
at the cost of bloated memory footprint.
The HybridDigest uses a SortingDigest for small sample
populations, then switches to a MergingDigest. This
approach combines to the best performance and results for
small sample counts with very good performance and
acceptable accuracy for effectively unbounded sample
counts.
* Remove deps to the 3.2 library.
* Remove unused licenses for tdigest.
* Revert changes for SortingDigest and HybridDigest.
These will be submitted in a follow-up PR for enabling MergingDigest.
* Remove unused Histogram classes and unit tests.
Delete dead and commented out code, make the remaining tests run
reasonably fast. Remove unused annotations, esp. SuppressWarnings.
* Remove Comparison class, not used.
* Small fixes.
* Add javadoc and tests.
* Remove special logic for singletons in the boundaries.
While this helps with the case where the digest contains only
singletons (perfect accuracy), it has a major issue problem
(non-monotonic quantile function) when the first singleton is followed
by a non-singleton centroid. It's preferable to revert to the old
version from 3.2; inaccuracies in a singleton-only digest should be
mitigated by using a sorted array for small sample counts.
* Revert changes to expected values in tests.
This is due to restoring quantile functions to match head.
* Revert changes to expected values in tests.
This is due to restoring quantile functions to match head.
* Tentatively restore percentile rank expected results.
* Use cdf version from 3.2
Update Dist.cdf to use interpolation, use the same cdf
version in AVLTreeDigest and MergingDigest.
* Revert "Tentatively restore percentile rank expected results."
This reverts commit 7718dbba594f068913dfb7b85f488ca25e5e47bf.
* Revert remaining changes compared to main.
* Revert excluded V7 compat tests.
* Exclude V7 compat tests still failing.
* Exclude V7 compat tests still failing.
* Restore bySize function in TDigest and subclasses.
2023-06-13 16:43:54 +08:00
|
|
|
requires org.elasticsearch.tdigest;
|
2024-06-17 18:10:02 +08:00
|
|
|
requires org.elasticsearch.simdvec;
|
2024-11-06 07:07:52 +08:00
|
|
|
requires org.elasticsearch.entitlement;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
|
|
|
|
requires hppc;
|
|
|
|
requires HdrHistogram;
|
|
|
|
requires jopt.simple;
|
|
|
|
requires log4j2.ecs.layout;
|
|
|
|
requires org.lz4.java;
|
|
|
|
|
|
|
|
requires org.apache.logging.log4j;
|
|
|
|
requires org.apache.logging.log4j.core;
|
|
|
|
|
|
|
|
requires org.apache.lucene.analysis.common;
|
|
|
|
requires org.apache.lucene.backward_codecs;
|
|
|
|
requires org.apache.lucene.core;
|
|
|
|
requires org.apache.lucene.grouping;
|
|
|
|
requires org.apache.lucene.highlighter;
|
|
|
|
requires org.apache.lucene.join;
|
|
|
|
requires org.apache.lucene.memory;
|
|
|
|
requires org.apache.lucene.misc;
|
|
|
|
requires org.apache.lucene.queries;
|
|
|
|
requires org.apache.lucene.queryparser;
|
|
|
|
requires org.apache.lucene.sandbox;
|
|
|
|
requires org.apache.lucene.suggest;
|
|
|
|
|
|
|
|
exports org.elasticsearch;
|
|
|
|
exports org.elasticsearch.action;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.allocation;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.configuration;
|
2022-12-12 17:23:15 +08:00
|
|
|
exports org.elasticsearch.action.admin.cluster.coordination;
|
2022-06-20 21:32:44 +08:00
|
|
|
exports org.elasticsearch.action.admin.cluster.desirednodes;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.action.admin.cluster.health;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.migration;
|
2024-05-08 21:44:26 +08:00
|
|
|
exports org.elasticsearch.action.admin.cluster.node.capabilities;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.action.admin.cluster.node.hotthreads;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.node.info;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.node.reload;
|
2022-11-16 20:44:00 +08:00
|
|
|
exports org.elasticsearch.action.admin.cluster.node.shutdown;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.action.admin.cluster.node.stats;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.node.tasks.cancel;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.node.tasks.get;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.node.tasks.list;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.node.usage;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.remote;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.repositories.cleanup;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.repositories.delete;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.repositories.get;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.repositories.put;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.repositories.verify;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.reroute;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.settings;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.shards;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.snapshots.clone;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.snapshots.create;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.snapshots.delete;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.snapshots.features;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.snapshots.get;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.snapshots.get.shard;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.snapshots.restore;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.snapshots.status;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.state;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.stats;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.storedscripts;
|
|
|
|
exports org.elasticsearch.action.admin.cluster.tasks;
|
|
|
|
exports org.elasticsearch.action.admin.indices.alias;
|
|
|
|
exports org.elasticsearch.action.admin.indices.alias.get;
|
|
|
|
exports org.elasticsearch.action.admin.indices.analyze;
|
|
|
|
exports org.elasticsearch.action.admin.indices.cache.clear;
|
|
|
|
exports org.elasticsearch.action.admin.indices.close;
|
|
|
|
exports org.elasticsearch.action.admin.indices.create;
|
|
|
|
exports org.elasticsearch.action.admin.indices.dangling;
|
|
|
|
exports org.elasticsearch.action.admin.indices.dangling.delete;
|
|
|
|
exports org.elasticsearch.action.admin.indices.dangling.find;
|
|
|
|
exports org.elasticsearch.action.admin.indices.dangling.import_index;
|
|
|
|
exports org.elasticsearch.action.admin.indices.dangling.list;
|
|
|
|
exports org.elasticsearch.action.admin.indices.delete;
|
|
|
|
exports org.elasticsearch.action.admin.indices.diskusage;
|
|
|
|
exports org.elasticsearch.action.admin.indices.flush;
|
|
|
|
exports org.elasticsearch.action.admin.indices.forcemerge;
|
|
|
|
exports org.elasticsearch.action.admin.indices.get;
|
|
|
|
exports org.elasticsearch.action.admin.indices.mapping.get;
|
|
|
|
exports org.elasticsearch.action.admin.indices.mapping.put;
|
|
|
|
exports org.elasticsearch.action.admin.indices.open;
|
|
|
|
exports org.elasticsearch.action.admin.indices.readonly;
|
|
|
|
exports org.elasticsearch.action.admin.indices.recovery;
|
|
|
|
exports org.elasticsearch.action.admin.indices.refresh;
|
|
|
|
exports org.elasticsearch.action.admin.indices.resolve;
|
|
|
|
exports org.elasticsearch.action.admin.indices.rollover;
|
|
|
|
exports org.elasticsearch.action.admin.indices.segments;
|
|
|
|
exports org.elasticsearch.action.admin.indices.settings.get;
|
|
|
|
exports org.elasticsearch.action.admin.indices.settings.put;
|
|
|
|
exports org.elasticsearch.action.admin.indices.shards;
|
|
|
|
exports org.elasticsearch.action.admin.indices.shrink;
|
|
|
|
exports org.elasticsearch.action.admin.indices.stats;
|
|
|
|
exports org.elasticsearch.action.admin.indices.template.delete;
|
|
|
|
exports org.elasticsearch.action.admin.indices.template.get;
|
|
|
|
exports org.elasticsearch.action.admin.indices.template.post;
|
|
|
|
exports org.elasticsearch.action.admin.indices.template.put;
|
|
|
|
exports org.elasticsearch.action.admin.indices.validate.query;
|
|
|
|
exports org.elasticsearch.action.bulk;
|
|
|
|
exports org.elasticsearch.action.datastreams;
|
|
|
|
exports org.elasticsearch.action.delete;
|
|
|
|
exports org.elasticsearch.action.explain;
|
|
|
|
exports org.elasticsearch.action.fieldcaps;
|
|
|
|
exports org.elasticsearch.action.get;
|
|
|
|
exports org.elasticsearch.action.index;
|
|
|
|
exports org.elasticsearch.action.ingest;
|
|
|
|
exports org.elasticsearch.action.resync;
|
|
|
|
exports org.elasticsearch.action.search;
|
|
|
|
exports org.elasticsearch.action.support;
|
|
|
|
exports org.elasticsearch.action.support.broadcast;
|
|
|
|
exports org.elasticsearch.action.support.broadcast.node;
|
2023-02-15 18:46:06 +08:00
|
|
|
exports org.elasticsearch.action.support.broadcast.unpromotable;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.action.support.master;
|
|
|
|
exports org.elasticsearch.action.support.master.info;
|
|
|
|
exports org.elasticsearch.action.support.nodes;
|
2024-12-04 19:17:13 +08:00
|
|
|
exports org.elasticsearch.action.support.local;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.action.support.replication;
|
|
|
|
exports org.elasticsearch.action.support.single.instance;
|
|
|
|
exports org.elasticsearch.action.support.single.shard;
|
|
|
|
exports org.elasticsearch.action.support.tasks;
|
|
|
|
exports org.elasticsearch.action.termvectors;
|
|
|
|
exports org.elasticsearch.action.update;
|
|
|
|
exports org.elasticsearch.bootstrap;
|
|
|
|
exports org.elasticsearch.client.internal;
|
|
|
|
exports org.elasticsearch.client.internal.node;
|
|
|
|
exports org.elasticsearch.client.internal.support;
|
|
|
|
exports org.elasticsearch.client.internal.transport;
|
|
|
|
exports org.elasticsearch.cluster;
|
|
|
|
exports org.elasticsearch.cluster.action.index;
|
|
|
|
exports org.elasticsearch.cluster.action.shard;
|
|
|
|
exports org.elasticsearch.cluster.block;
|
|
|
|
exports org.elasticsearch.cluster.coordination;
|
2023-03-31 19:27:46 +08:00
|
|
|
exports org.elasticsearch.cluster.coordination.stateless;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.cluster.health;
|
|
|
|
exports org.elasticsearch.cluster.metadata;
|
|
|
|
exports org.elasticsearch.cluster.node;
|
2024-08-01 22:32:29 +08:00
|
|
|
exports org.elasticsearch.cluster.project;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.cluster.routing;
|
|
|
|
exports org.elasticsearch.cluster.routing.allocation;
|
|
|
|
exports org.elasticsearch.cluster.routing.allocation.allocator;
|
|
|
|
exports org.elasticsearch.cluster.routing.allocation.command;
|
|
|
|
exports org.elasticsearch.cluster.routing.allocation.decider;
|
|
|
|
exports org.elasticsearch.cluster.service;
|
2023-09-06 21:52:42 +08:00
|
|
|
exports org.elasticsearch.cluster.version;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.common;
|
|
|
|
exports org.elasticsearch.common.blobstore;
|
|
|
|
exports org.elasticsearch.common.blobstore.fs;
|
|
|
|
exports org.elasticsearch.common.blobstore.support;
|
|
|
|
exports org.elasticsearch.common.breaker;
|
|
|
|
exports org.elasticsearch.common.bytes;
|
|
|
|
exports org.elasticsearch.common.cache;
|
|
|
|
exports org.elasticsearch.common.cli;
|
|
|
|
exports org.elasticsearch.common.collect;
|
|
|
|
exports org.elasticsearch.common.component;
|
|
|
|
exports org.elasticsearch.common.compress;
|
|
|
|
exports org.elasticsearch.common.document;
|
2023-04-21 01:14:26 +08:00
|
|
|
exports org.elasticsearch.common.file;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.common.geo;
|
|
|
|
exports org.elasticsearch.common.hash;
|
2024-08-28 23:13:47 +08:00
|
|
|
exports org.elasticsearch.injection.api;
|
2024-08-12 22:47:46 +08:00
|
|
|
exports org.elasticsearch.injection.guice;
|
|
|
|
exports org.elasticsearch.injection.guice.binder;
|
|
|
|
exports org.elasticsearch.injection.guice.internal;
|
|
|
|
exports org.elasticsearch.injection.guice.matcher;
|
|
|
|
exports org.elasticsearch.injection.guice.multibindings;
|
|
|
|
exports org.elasticsearch.injection.guice.name;
|
|
|
|
exports org.elasticsearch.injection.guice.spi;
|
|
|
|
exports org.elasticsearch.injection.guice.util;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.common.io;
|
|
|
|
exports org.elasticsearch.common.io.stream;
|
|
|
|
exports org.elasticsearch.common.logging;
|
|
|
|
exports org.elasticsearch.common.lucene;
|
|
|
|
exports org.elasticsearch.common.lucene.index;
|
|
|
|
exports org.elasticsearch.common.lucene.search;
|
|
|
|
exports org.elasticsearch.common.lucene.search.function;
|
|
|
|
exports org.elasticsearch.common.lucene.store;
|
|
|
|
exports org.elasticsearch.common.lucene.uid;
|
|
|
|
exports org.elasticsearch.common.metrics;
|
|
|
|
exports org.elasticsearch.common.network;
|
|
|
|
exports org.elasticsearch.common.path;
|
|
|
|
exports org.elasticsearch.common.recycler;
|
|
|
|
exports org.elasticsearch.common.regex;
|
2023-02-17 16:55:40 +08:00
|
|
|
exports org.elasticsearch.common.scheduler;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.common.settings;
|
|
|
|
exports org.elasticsearch.common.text;
|
|
|
|
exports org.elasticsearch.common.time;
|
|
|
|
exports org.elasticsearch.common.transport;
|
|
|
|
exports org.elasticsearch.common.unit;
|
|
|
|
exports org.elasticsearch.common.util;
|
|
|
|
exports org.elasticsearch.common.util.concurrent;
|
|
|
|
exports org.elasticsearch.common.util.iterable;
|
|
|
|
exports org.elasticsearch.common.util.set;
|
|
|
|
exports org.elasticsearch.common.xcontent;
|
|
|
|
exports org.elasticsearch.common.xcontent.support;
|
|
|
|
exports org.elasticsearch.discovery;
|
|
|
|
exports org.elasticsearch.env;
|
2023-10-30 22:38:30 +08:00
|
|
|
exports org.elasticsearch.features;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.gateway;
|
|
|
|
exports org.elasticsearch.health;
|
2022-08-03 16:10:26 +08:00
|
|
|
exports org.elasticsearch.health.node;
|
2024-02-07 22:18:55 +08:00
|
|
|
exports org.elasticsearch.health.node.tracker;
|
2022-06-20 17:48:59 +08:00
|
|
|
exports org.elasticsearch.health.node.selection;
|
Collect health API stats (#91559)
This PR introduces the collectors of the health API telemetry. Our
target telemetry has the following shape:
```
{
"invocations": {
"total": 22,
"verbose_true": 12,
"verbose_false": 10
},
"statuses": {
"green": 10,
"yellow": 4,
"red": 8,
"values": ["green", "yellow", "red"]
},
"indicators": {
"red" : {
"master_stability": 2,
"ilm":2,
"slm": 4,
"values": ["master_stability", "ilm", "slm"]
},
"yellow": {
"disk": 1,
"shards_availability": 1,
"master_stability": 2,
"values": ["disk", "shards_availability", "master_stability"]
}
},
"diagnoses": {
"red": {
"elasticsearch:health:shards_availability:primary_unassigned": 1,
"elasticsearch:health:disk:add_disk_capacity_master_nodes": 3,
"values": ["elasticsearch:health:shards_availability:primary_unassigned", "elasticsearch:health:disk:add_disk_capacity_master_nodes"]
},
"yellow": {
"elasticsearch:health:disk:add_disk_capacity_data_nodes": 1,
"values": [""elasticsearch:health:disk:add_disk_capacity_data_nodes"]
}
}
}
```
This PR introduces the thread safe `Counters` class and the
`HealthApiStats` which keeps keeps of the metrics above based on the
health api responses that it encounters. The `HealthApiStatsAction`
collects the `HealthApiStats` of all nodes.
Part of: #90877
2022-11-18 18:34:33 +08:00
|
|
|
exports org.elasticsearch.health.stats;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.http;
|
|
|
|
exports org.elasticsearch.index;
|
|
|
|
exports org.elasticsearch.index.analysis;
|
|
|
|
exports org.elasticsearch.index.bulk.stats;
|
|
|
|
exports org.elasticsearch.index.cache;
|
|
|
|
exports org.elasticsearch.index.cache.bitset;
|
|
|
|
exports org.elasticsearch.index.cache.query;
|
|
|
|
exports org.elasticsearch.index.cache.request;
|
|
|
|
exports org.elasticsearch.index.codec;
|
2023-01-12 22:42:49 +08:00
|
|
|
exports org.elasticsearch.index.codec.tsdb;
|
2022-08-08 23:14:26 +08:00
|
|
|
exports org.elasticsearch.index.codec.bloomfilter;
|
2024-04-09 15:18:58 +08:00
|
|
|
exports org.elasticsearch.index.codec.zstd;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.index.engine;
|
|
|
|
exports org.elasticsearch.index.fielddata;
|
|
|
|
exports org.elasticsearch.index.fielddata.fieldcomparator;
|
|
|
|
exports org.elasticsearch.index.fielddata.ordinals;
|
|
|
|
exports org.elasticsearch.index.fielddata.plain;
|
|
|
|
exports org.elasticsearch.index.fieldvisitor;
|
|
|
|
exports org.elasticsearch.index.flush;
|
|
|
|
exports org.elasticsearch.index.get;
|
|
|
|
exports org.elasticsearch.index.mapper;
|
|
|
|
exports org.elasticsearch.index.mapper.flattened;
|
2022-06-23 12:10:20 +08:00
|
|
|
exports org.elasticsearch.index.mapper.vectors;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.index.merge;
|
|
|
|
exports org.elasticsearch.index.query;
|
|
|
|
exports org.elasticsearch.index.query.functionscore;
|
|
|
|
exports org.elasticsearch.index.query.support;
|
|
|
|
exports org.elasticsearch.index.recovery;
|
|
|
|
exports org.elasticsearch.index.refresh;
|
|
|
|
exports org.elasticsearch.index.reindex;
|
|
|
|
exports org.elasticsearch.index.search;
|
|
|
|
exports org.elasticsearch.index.search.stats;
|
|
|
|
exports org.elasticsearch.index.seqno;
|
|
|
|
exports org.elasticsearch.index.shard;
|
|
|
|
exports org.elasticsearch.index.similarity;
|
|
|
|
exports org.elasticsearch.index.snapshots;
|
|
|
|
exports org.elasticsearch.index.snapshots.blobstore;
|
|
|
|
exports org.elasticsearch.index.stats;
|
|
|
|
exports org.elasticsearch.index.store;
|
|
|
|
exports org.elasticsearch.index.termvectors;
|
|
|
|
exports org.elasticsearch.index.translog;
|
|
|
|
exports org.elasticsearch.index.warmer;
|
|
|
|
exports org.elasticsearch.indices;
|
|
|
|
exports org.elasticsearch.indices.analysis;
|
|
|
|
exports org.elasticsearch.indices.breaker;
|
|
|
|
exports org.elasticsearch.indices.cluster;
|
|
|
|
exports org.elasticsearch.indices.fielddata.cache;
|
|
|
|
exports org.elasticsearch.indices.recovery;
|
|
|
|
exports org.elasticsearch.indices.recovery.plan;
|
|
|
|
exports org.elasticsearch.indices.store;
|
2023-09-27 20:35:45 +08:00
|
|
|
exports org.elasticsearch.inference;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.ingest;
|
2023-09-20 21:15:04 +08:00
|
|
|
exports org.elasticsearch.internal
|
|
|
|
to
|
|
|
|
org.elasticsearch.serverless.version,
|
|
|
|
org.elasticsearch.serverless.buildinfo,
|
2024-11-29 05:25:02 +08:00
|
|
|
org.elasticsearch.serverless.constants,
|
|
|
|
org.elasticsearch.serverless.codec;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.lucene.analysis.miscellaneous;
|
|
|
|
exports org.elasticsearch.lucene.grouping;
|
|
|
|
exports org.elasticsearch.lucene.queries;
|
|
|
|
exports org.elasticsearch.lucene.search.uhighlight;
|
|
|
|
exports org.elasticsearch.lucene.search.vectorhighlight;
|
|
|
|
exports org.elasticsearch.lucene.similarity;
|
|
|
|
exports org.elasticsearch.lucene.util;
|
|
|
|
exports org.elasticsearch.monitor;
|
|
|
|
exports org.elasticsearch.monitor.fs;
|
|
|
|
exports org.elasticsearch.monitor.jvm;
|
|
|
|
exports org.elasticsearch.monitor.os;
|
|
|
|
exports org.elasticsearch.monitor.process;
|
|
|
|
exports org.elasticsearch.node;
|
2023-05-18 05:18:37 +08:00
|
|
|
exports org.elasticsearch.node.internal to org.elasticsearch.internal.sigterm;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.persistent;
|
|
|
|
exports org.elasticsearch.persistent.decider;
|
|
|
|
exports org.elasticsearch.plugins;
|
2023-08-08 13:29:24 +08:00
|
|
|
exports org.elasticsearch.plugins.interceptor to org.elasticsearch.security, org.elasticsearch.serverless.rest;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.plugins.spi;
|
|
|
|
exports org.elasticsearch.repositories;
|
|
|
|
exports org.elasticsearch.repositories.blobstore;
|
|
|
|
exports org.elasticsearch.repositories.fs;
|
2022-12-12 17:23:15 +08:00
|
|
|
exports org.elasticsearch.reservedstate;
|
2025-01-10 17:16:00 +08:00
|
|
|
exports org.elasticsearch.reservedstate.service to org.elasticsearch.multiproject;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.rest;
|
|
|
|
exports org.elasticsearch.rest.action;
|
|
|
|
exports org.elasticsearch.rest.action.admin.cluster;
|
|
|
|
exports org.elasticsearch.rest.action.admin.cluster.dangling;
|
|
|
|
exports org.elasticsearch.rest.action.admin.indices;
|
|
|
|
exports org.elasticsearch.rest.action.cat;
|
|
|
|
exports org.elasticsearch.rest.action.document;
|
|
|
|
exports org.elasticsearch.rest.action.ingest;
|
|
|
|
exports org.elasticsearch.rest.action.search;
|
|
|
|
exports org.elasticsearch.script;
|
|
|
|
exports org.elasticsearch.script.field;
|
2022-06-23 12:10:20 +08:00
|
|
|
exports org.elasticsearch.script.field.vectors;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.search;
|
|
|
|
exports org.elasticsearch.search.aggregations;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.composite;
|
2024-02-02 22:56:07 +08:00
|
|
|
exports org.elasticsearch.search.aggregations.bucket.countedterms;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.search.aggregations.bucket.filter;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.geogrid;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.global;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.histogram;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.missing;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.nested;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.range;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.sampler;
|
2024-01-25 21:01:35 +08:00
|
|
|
exports org.elasticsearch.search.aggregations.bucket.sampler.random;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.search.aggregations.bucket.terms;
|
|
|
|
exports org.elasticsearch.search.aggregations.bucket.terms.heuristic;
|
|
|
|
exports org.elasticsearch.search.aggregations.metrics;
|
|
|
|
exports org.elasticsearch.search.aggregations.pipeline;
|
|
|
|
exports org.elasticsearch.search.aggregations.support;
|
|
|
|
exports org.elasticsearch.search.aggregations.support.values;
|
|
|
|
exports org.elasticsearch.search.builder;
|
|
|
|
exports org.elasticsearch.search.collapse;
|
|
|
|
exports org.elasticsearch.search.dfs;
|
|
|
|
exports org.elasticsearch.search.fetch;
|
|
|
|
exports org.elasticsearch.search.fetch.subphase;
|
|
|
|
exports org.elasticsearch.search.fetch.subphase.highlight;
|
|
|
|
exports org.elasticsearch.search.internal;
|
|
|
|
exports org.elasticsearch.search.lookup;
|
|
|
|
exports org.elasticsearch.search.profile;
|
|
|
|
exports org.elasticsearch.search.profile.aggregation;
|
2022-10-06 00:54:36 +08:00
|
|
|
exports org.elasticsearch.search.profile.dfs;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.search.profile.query;
|
|
|
|
exports org.elasticsearch.search.query;
|
2023-04-25 06:07:34 +08:00
|
|
|
exports org.elasticsearch.search.rank;
|
2024-04-24 19:58:16 +08:00
|
|
|
exports org.elasticsearch.search.rank.context;
|
2024-06-06 16:20:53 +08:00
|
|
|
exports org.elasticsearch.search.rank.feature;
|
2024-06-12 23:09:06 +08:00
|
|
|
exports org.elasticsearch.search.rank.rerank;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.search.rescore;
|
2024-03-13 01:11:55 +08:00
|
|
|
exports org.elasticsearch.search.retriever;
|
2024-08-26 20:18:47 +08:00
|
|
|
exports org.elasticsearch.search.retriever.rankdoc;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.search.runtime;
|
|
|
|
exports org.elasticsearch.search.searchafter;
|
|
|
|
exports org.elasticsearch.search.slice;
|
|
|
|
exports org.elasticsearch.search.sort;
|
|
|
|
exports org.elasticsearch.search.suggest;
|
|
|
|
exports org.elasticsearch.search.suggest.completion;
|
|
|
|
exports org.elasticsearch.search.suggest.completion.context;
|
|
|
|
exports org.elasticsearch.search.suggest.phrase;
|
|
|
|
exports org.elasticsearch.search.suggest.term;
|
2022-06-23 12:10:20 +08:00
|
|
|
exports org.elasticsearch.search.vectors;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.shutdown;
|
|
|
|
exports org.elasticsearch.snapshots;
|
2023-05-31 16:48:56 +08:00
|
|
|
exports org.elasticsearch.synonyms;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
exports org.elasticsearch.tasks;
|
|
|
|
exports org.elasticsearch.threadpool;
|
|
|
|
exports org.elasticsearch.transport;
|
|
|
|
exports org.elasticsearch.upgrades;
|
|
|
|
exports org.elasticsearch.usage;
|
|
|
|
exports org.elasticsearch.watcher;
|
|
|
|
|
|
|
|
opens org.elasticsearch.common.logging to org.apache.logging.log4j.core;
|
|
|
|
|
2023-07-05 17:28:32 +08:00
|
|
|
exports org.elasticsearch.action.datastreams.lifecycle;
|
2024-03-06 18:12:08 +08:00
|
|
|
exports org.elasticsearch.action.datastreams.autosharding;
|
2023-06-29 21:41:17 +08:00
|
|
|
exports org.elasticsearch.action.downsample;
|
2023-08-25 22:00:49 +08:00
|
|
|
exports org.elasticsearch.plugins.internal
|
|
|
|
to
|
2025-01-17 08:58:54 +08:00
|
|
|
org.elasticsearch.inference,
|
2023-08-25 22:00:49 +08:00
|
|
|
org.elasticsearch.metering,
|
2024-05-16 19:57:06 +08:00
|
|
|
org.elasticsearch.stateless,
|
2023-08-25 22:00:49 +08:00
|
|
|
org.elasticsearch.settings.secure,
|
2023-09-14 11:48:09 +08:00
|
|
|
org.elasticsearch.serverless.constants,
|
2024-11-29 05:25:02 +08:00
|
|
|
org.elasticsearch.serverless.codec,
|
2024-04-11 10:14:00 +08:00
|
|
|
org.elasticsearch.serverless.apifiltering,
|
|
|
|
org.elasticsearch.internal.security;
|
|
|
|
|
2023-09-20 22:58:02 +08:00
|
|
|
exports org.elasticsearch.telemetry.tracing;
|
2023-09-22 19:35:36 +08:00
|
|
|
exports org.elasticsearch.telemetry;
|
2023-09-29 08:35:46 +08:00
|
|
|
exports org.elasticsearch.telemetry.metric;
|
Introduce a _lifecycle/explain API for data stream backing indices (#94621)
This adds an {index}/_lifecycle/explain API to retrieve information
about an index's status within its lifecycle.
The response looks like so:
```
"indices" : {
".ds-metrics-foo-2023.03.22-000001" : {
"index" : ".ds-metrics-foo-2023.03.22-000001",
"managed_by_dlm" : true,
"index_creation_date_millis" : 1679475563571,
"time_since_index_creation" : "843ms",
"rollover_date_millis" : 1679475564293,
"time_since_rollover" : "121ms",
"lifecycle" : { },
"generation_time" : "121ms"
},
".ds-metrics-foo-2023.03.22-000002" : {
"index" : ".ds-metrics-foo-2023.03.22-000002",
"managed_by_dlm" : true,
"index_creation_date_millis" : 1679475564351,
"time_since_index_creation" : "63ms",
"lifecycle" : { }
}
}
}
```
2023-03-27 15:44:40 +08:00
|
|
|
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
provides org.elasticsearch.xcontent.ErrorOnUnknown with org.elasticsearch.common.xcontent.SuggestingErrorOnUnknown;
|
|
|
|
provides org.elasticsearch.xcontent.XContentBuilderExtension with org.elasticsearch.common.xcontent.XContentElasticsearchExtension;
|
|
|
|
provides org.elasticsearch.cli.CliToolProvider
|
|
|
|
with
|
|
|
|
org.elasticsearch.cluster.coordination.NodeToolCliProvider,
|
|
|
|
org.elasticsearch.index.shard.ShardToolCliProvider;
|
2022-07-05 00:12:49 +08:00
|
|
|
|
2025-01-10 17:16:00 +08:00
|
|
|
uses org.elasticsearch.reservedstate.service.FileSettingsServiceProvider;
|
2022-07-14 03:05:39 +08:00
|
|
|
uses org.elasticsearch.reservedstate.ReservedClusterStateHandlerProvider;
|
2023-04-11 04:05:43 +08:00
|
|
|
uses org.elasticsearch.jdk.ModuleQualifiedExportsService;
|
2023-05-18 05:18:37 +08:00
|
|
|
uses org.elasticsearch.node.internal.TerminationHandlerProvider;
|
2023-06-06 23:32:01 +08:00
|
|
|
uses org.elasticsearch.internal.VersionExtension;
|
2023-07-19 21:02:57 +08:00
|
|
|
uses org.elasticsearch.internal.BuildExtension;
|
2024-11-29 05:25:02 +08:00
|
|
|
uses CompletionsPostingsFormatExtension;
|
2023-10-30 22:38:30 +08:00
|
|
|
uses org.elasticsearch.features.FeatureSpecification;
|
2024-04-11 10:14:00 +08:00
|
|
|
uses org.elasticsearch.plugins.internal.LoggingDataProvider;
|
2023-10-30 22:38:30 +08:00
|
|
|
|
2023-10-31 18:06:14 +08:00
|
|
|
provides org.elasticsearch.features.FeatureSpecification
|
|
|
|
with
|
2024-07-19 21:08:21 +08:00
|
|
|
org.elasticsearch.action.bulk.BulkFeatures,
|
2023-11-03 17:24:50 +08:00
|
|
|
org.elasticsearch.features.FeatureInfrastructureFeatures,
|
2024-10-08 14:59:57 +08:00
|
|
|
org.elasticsearch.rest.action.admin.cluster.ClusterRerouteFeatures,
|
2024-04-26 20:35:31 +08:00
|
|
|
org.elasticsearch.index.mapper.MapperFeatures,
|
2025-01-10 19:22:54 +08:00
|
|
|
org.elasticsearch.index.IndexFeatures,
|
2024-06-28 21:59:28 +08:00
|
|
|
org.elasticsearch.search.SearchFeatures,
|
2024-06-18 01:41:20 +08:00
|
|
|
org.elasticsearch.script.ScriptFeatures,
|
2024-06-11 04:55:53 +08:00
|
|
|
org.elasticsearch.search.retriever.RetrieversFeatures,
|
2024-11-28 17:53:39 +08:00
|
|
|
org.elasticsearch.action.admin.cluster.stats.ClusterStatsFeatures;
|
2023-10-30 22:38:30 +08:00
|
|
|
|
2023-08-25 22:00:49 +08:00
|
|
|
uses org.elasticsearch.plugins.internal.SettingsExtension;
|
2023-09-14 11:48:09 +08:00
|
|
|
uses RestExtension;
|
2023-09-22 00:08:43 +08:00
|
|
|
uses org.elasticsearch.action.admin.cluster.node.info.ComponentVersionNumber;
|
2022-08-08 23:14:26 +08:00
|
|
|
|
2023-02-04 20:42:26 +08:00
|
|
|
provides org.apache.lucene.codecs.PostingsFormat
|
|
|
|
with
|
|
|
|
org.elasticsearch.index.codec.bloomfilter.ES85BloomFilterPostingsFormat,
|
2023-12-20 22:09:24 +08:00
|
|
|
org.elasticsearch.index.codec.bloomfilter.ES87BloomFilterPostingsFormat,
|
|
|
|
org.elasticsearch.index.codec.postings.ES812PostingsFormat;
|
2024-10-15 08:13:27 +08:00
|
|
|
provides org.apache.lucene.codecs.DocValuesFormat with org.elasticsearch.index.codec.tsdb.ES87TSDBDocValuesFormat;
|
2024-02-06 01:56:13 +08:00
|
|
|
provides org.apache.lucene.codecs.KnnVectorsFormat
|
|
|
|
with
|
|
|
|
org.elasticsearch.index.codec.vectors.ES813FlatVectorFormat,
|
2024-04-12 15:44:21 +08:00
|
|
|
org.elasticsearch.index.codec.vectors.ES813Int8FlatVectorFormat,
|
Adds new `bit` element_type for dense_vectors (#110059)
This commit adds `bit` vector support by adding `element_type: bit` for
vectors. This new element type works for indexed and non-indexed
vectors. Additionally, it works with `hnsw` and `flat` index types. No
quantization based codec works with this element type, this is
consistent with `byte` vectors.
`bit` vectors accept up to `32768` dimensions in size and expect vectors
that are being indexed to be encoded either as a hexidecimal string or a
`byte[]` array where each element of the `byte` array represents `8`
bits of the vector.
`bit` vectors support script usage and regular query usage. When
indexed, all comparisons done are `xor` and `popcount` summations (aka,
hamming distance), and the scores are transformed and normalized given
the vector dimensions. Note, indexed bit vectors require `l2_norm` to be
the similarity.
For scripts, `l1norm` is the same as `hamming` distance and `l2norm` is
`sqrt(l1norm)`. `dotProduct` and `cosineSimilarity` are not supported.
Note, the dimensions expected by this element_type are always to be
divisible by `8`, and the `byte[]` vectors provided for index must be
have size `dim/8` size, where each byte element represents `8` bits of
the vectors.
closes: https://github.com/elastic/elasticsearch/issues/48322
2024-06-27 02:48:41 +08:00
|
|
|
org.elasticsearch.index.codec.vectors.ES814HnswScalarQuantizedVectorsFormat,
|
|
|
|
org.elasticsearch.index.codec.vectors.ES815HnswBitVectorsFormat,
|
2024-10-15 08:13:27 +08:00
|
|
|
org.elasticsearch.index.codec.vectors.ES815BitFlatVectorFormat,
|
2024-12-03 05:04:31 +08:00
|
|
|
org.elasticsearch.index.codec.vectors.es816.ES816BinaryQuantizedVectorsFormat,
|
2024-12-10 13:23:29 +08:00
|
|
|
org.elasticsearch.index.codec.vectors.es816.ES816HnswBinaryQuantizedVectorsFormat,
|
|
|
|
org.elasticsearch.index.codec.vectors.es818.ES818BinaryQuantizedVectorsFormat,
|
|
|
|
org.elasticsearch.index.codec.vectors.es818.ES818HnswBinaryQuantizedVectorsFormat;
|
Adds new `bit` element_type for dense_vectors (#110059)
This commit adds `bit` vector support by adding `element_type: bit` for
vectors. This new element type works for indexed and non-indexed
vectors. Additionally, it works with `hnsw` and `flat` index types. No
quantization based codec works with this element type, this is
consistent with `byte` vectors.
`bit` vectors accept up to `32768` dimensions in size and expect vectors
that are being indexed to be encoded either as a hexidecimal string or a
`byte[]` array where each element of the `byte` array represents `8`
bits of the vector.
`bit` vectors support script usage and regular query usage. When
indexed, all comparisons done are `xor` and `popcount` summations (aka,
hamming distance), and the scores are transformed and normalized given
the vector dimensions. Note, indexed bit vectors require `l2_norm` to be
the similarity.
For scripts, `l1norm` is the same as `hamming` distance and `l2norm` is
`sqrt(l1norm)`. `dotProduct` and `cosineSimilarity` are not supported.
Note, the dimensions expected by this element_type are always to be
divisible by `8`, and the `byte[]` vectors provided for index must be
have size `dim/8` size, where each byte element represents `8` bits of
the vectors.
closes: https://github.com/elastic/elasticsearch/issues/48322
2024-06-27 02:48:41 +08:00
|
|
|
|
2024-10-01 15:39:27 +08:00
|
|
|
provides org.apache.lucene.codecs.Codec
|
|
|
|
with
|
|
|
|
org.elasticsearch.index.codec.Elasticsearch814Codec,
|
2024-10-21 19:38:23 +08:00
|
|
|
org.elasticsearch.index.codec.Elasticsearch816Codec,
|
2025-01-30 21:41:02 +08:00
|
|
|
org.elasticsearch.index.codec.Elasticsearch900Codec,
|
|
|
|
org.elasticsearch.index.codec.Elasticsearch900Lucene101Codec;
|
2023-11-04 05:59:09 +08:00
|
|
|
|
2024-04-11 10:14:00 +08:00
|
|
|
provides org.apache.logging.log4j.core.util.ContextDataProvider with org.elasticsearch.common.logging.DynamicContextDataProvider;
|
|
|
|
|
2023-11-22 23:20:10 +08:00
|
|
|
exports org.elasticsearch.cluster.routing.allocation.shards
|
|
|
|
to
|
|
|
|
org.elasticsearch.shardhealth,
|
|
|
|
org.elasticsearch.serverless.shardhealth,
|
|
|
|
org.elasticsearch.serverless.apifiltering;
|
2024-02-07 22:00:38 +08:00
|
|
|
exports org.elasticsearch.lucene.spatial;
|
2024-10-31 01:29:58 +08:00
|
|
|
exports org.elasticsearch.inference.configuration;
|
2024-11-06 00:46:46 +08:00
|
|
|
exports org.elasticsearch.monitor.metrics;
|
2024-12-12 23:55:00 +08:00
|
|
|
exports org.elasticsearch.plugins.internal.rewriter to org.elasticsearch.inference;
|
2024-12-30 22:52:58 +08:00
|
|
|
exports org.elasticsearch.lucene.util.automaton;
|
Modularize Elasticsearch (#81066)
This PR represents the initial phase of Modularizing Elasticsearch (with
Java Modules).
This initial phase modularizes the core of the Elasticsearch server
with Java Modules, which is then used to load and configure extension
components atop the server. Only a subset of extension components are
modularized at this stage (other components come in a later phase).
Components are loaded dynamically at runtime with custom class loaders
(same as is currently done). Components with a module-info.class are
defined to a module layer.
This architecture is somewhat akin to the Modular JDK, where
applications run on the classpath. In the analogy, the Elasticsearch
server modules are the platform (thus are always resolved and present),
while components without a module-info.class are non-modular code
running atop the Elasticsearch server modules. The extension components
cannot access types from non-exported packages of the server modules, in
the same way that classpath applications cannot access types from
non-exported packages of modules from the JDK. Broadly, the core
Elasticseach java modules simply "wrap" the existing packages and export
them. There are opportunites to export less, which is best done in more
narrowly focused follow-up PRs.
The Elasticsearch distribution startup scripts are updated to put jars
on the module path (the class path is empty), so the distribution will
run the core of the server as java modules. A number of key components
have been retrofitted with module-info.java's too, and the remaining
components can follow later. Unit and functional tests run as
non-modular (since they commonly require package-private access), while
higher-level integration tests, that run the distribution, run as
modular.
Co-authored-by: Chris Hegarty <christopher.hegarty@elastic.co>
Co-authored-by: Ryan Ernst <ryan@iernst.net>
Co-authored-by: Rene Groeschke <rene@elastic.co>
2022-05-20 20:11:42 +08:00
|
|
|
}
|