public class CodecModule extends AbstractModule
CodecModule creates and loads the CodecService,
PostingsFormatService and DocValuesFormatService,
allowing low level data-structure specialization on a Lucene Segment basis.
The codec module is the authoritative source for build-in and custom
PostingsFormatProvider. During module bootstrap it processes the
index settings underneath the
and
instantiates the corresponding PostingsFormatProvider instances. To
configure a custom provider implementations the class should reside in the
org.elasticsearch.index.codec.postingsformat package and the
classname should be suffixed with PostingsFormatProvider.
For example to expose the Elastic-Fantastic format provider one need to
provide the following configuration settings and classes:
PostingsFormatProvider subclass in the package
org.elasticsearch.index.codec.postingsformatCodecService| Constructor and Description |
|---|
CodecModule(Settings indexSettings) |
| Modifier and Type | Method and Description |
|---|---|
CodecModule |
addDocValuesFormat(String name,
Class<? extends DocValuesFormatProvider> provider) |
CodecModule |
addPostingFormat(String name,
Class<? extends PostingsFormatProvider> provider) |
protected void |
configure()
Configures a
Binder via the exposed methods. |
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBindingpublic CodecModule(Settings indexSettings)
public CodecModule addPostingFormat(String name, Class<? extends PostingsFormatProvider> provider)
public CodecModule addDocValuesFormat(String name, Class<? extends DocValuesFormatProvider> provider)
protected void configure()
AbstractModuleBinder via the exposed methods.configure in class AbstractModuleCopyright © 2009–2016. All rights reserved.