public abstract class PreConfiguredAnalysisComponent<T> extends java.lang.Object implements AnalysisModule.AnalysisProvider<T>
Modifier | Constructor and Description |
---|---|
protected |
PreConfiguredAnalysisComponent(java.lang.String name,
PreBuiltCacheFactory.CachingStrategy cache) |
Modifier and Type | Method and Description |
---|---|
protected abstract T |
create(Version version) |
T |
get(IndexSettings indexSettings,
Environment environment,
java.lang.String name,
Settings settings)
Creates a new analysis provider.
|
java.lang.String |
getName()
The name of the analysis component in the API.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get, requiresAnalysisSettings
protected PreConfiguredAnalysisComponent(java.lang.String name, PreBuiltCacheFactory.CachingStrategy cache)
public T get(IndexSettings indexSettings, Environment environment, java.lang.String name, Settings settings) throws java.io.IOException
AnalysisModule.AnalysisProvider
get
in interface AnalysisModule.AnalysisProvider<T>
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
occurspublic java.lang.String getName()