public static interface AnalysisModule.AnalysisProvider<T>
Modifier and Type | Method and Description |
---|---|
default T |
get(Environment environment,
java.lang.String name)
Creates a new global scope analysis provider without index specific settings not settings for the provider itself.
|
T |
get(IndexSettings indexSettings,
Environment environment,
java.lang.String name,
Settings settings)
Creates a new analysis provider.
|
default boolean |
requiresAnalysisSettings()
If
true the analysis component created by this provider requires certain settings to be instantiated. |
T get(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings) throws java.io.IOException
indexSettings
- the index settings for the index this provider is created forenvironment
- the nodes environment to load resources from persistent storagename
- the name of the analysis componentsettings
- the component specific settings without context prefixesjava.io.IOException
- if an IOException
occursdefault T get(Environment environment, java.lang.String name) throws java.io.IOException
environment
- the nodes environment to load resources from persistent storagename
- the name of the analysis componentjava.io.IOException
- if an IOException
occursjava.lang.IllegalArgumentException
- if the provider requires analysis settings ie. if requiresAnalysisSettings()
returns
true
default boolean requiresAnalysisSettings()
true
the analysis component created by this provider requires certain settings to be instantiated.
it can't be created with defaults. The default is false
.