Package org.elasticsearch.indices
Class IndicesModule
java.lang.Object
org.elasticsearch.common.inject.AbstractModule
org.elasticsearch.indices.IndicesModule
- All Implemented Interfaces:
Module
public class IndicesModule extends AbstractModule
Configures classes and services that are shared by indices on each node.
-
Constructor Summary
Constructors Constructor Description IndicesModule(java.util.List<MapperPlugin> mapperPlugins)
-
Method Summary
Modifier and Type Method Description protected void
configure()
Configures aBinder
via the exposed methods.static java.util.Set<java.lang.String>
getBuiltInMetadataFields()
Returns a set containing all of the builtin metadata fieldsMapperRegistry
getMapperRegistry()
A registry for all field mappers.static java.util.Map<java.lang.String,Mapper.TypeParser>
getMappers(java.util.List<MapperPlugin> mapperPlugins)
static java.util.Map<java.lang.String,MetadataFieldMapper.TypeParser>
getMetadataMappers(java.util.List<MapperPlugin> mapperPlugins)
java.util.List<NamedWriteableRegistry.Entry>
getNamedWriteables()
static java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry>
getNamedXContents()
Methods inherited from class org.elasticsearch.common.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
Method Details
-
getNamedWriteables
-
getNamedXContents
public static java.util.List<org.elasticsearch.common.xcontent.NamedXContentRegistry.Entry> getNamedXContents() -
getMappers
public static java.util.Map<java.lang.String,Mapper.TypeParser> getMappers(java.util.List<MapperPlugin> mapperPlugins) -
getMetadataMappers
public static java.util.Map<java.lang.String,MetadataFieldMapper.TypeParser> getMetadataMappers(java.util.List<MapperPlugin> mapperPlugins) -
getBuiltInMetadataFields
public static java.util.Set<java.lang.String> getBuiltInMetadataFields()Returns a set containing all of the builtin metadata fields -
configure
protected void configure()Description copied from class:AbstractModule
Configures aBinder
via the exposed methods.- Specified by:
configure
in classAbstractModule
-
getMapperRegistry
A registry for all field mappers.
-