Class IndexSettingProviders

java.lang.Object
org.elasticsearch.index.IndexSettingProviders

public final class IndexSettingProviders extends Object
Keeps track of the IndexSettingProvider instances defined by plugins and this class can be used by other components to get access to IndexSettingProvider instances.
  • Field Details

  • Constructor Details

  • Method Details

    • of

      public static IndexSettingProviders of(Consumer<Settings.Builder> settingsBuilderConsumer)
      Utility method which creates an IndexSettingProviders instance that uses the provided consumer to add settings to the index being created. The primary use case is for tests that want to add specific settings without having to create a full implementation.
      Parameters:
      settingsBuilderConsumer - A consumer that adds index settings
      Returns:
      An IndexSettingProviders instance that uses the provided consumer to add settings
    • getIndexSettingProviders

      public Set<IndexSettingProvider> getIndexSettingProviders()