org.elasticsearch.index.mapper.xcontent
Class XContentDocumentMapperParser

java.lang.Object
  extended by org.elasticsearch.index.AbstractIndexComponent
      extended by org.elasticsearch.index.mapper.xcontent.XContentDocumentMapperParser
All Implemented Interfaces:
IndexComponent, DocumentMapperParser

public class XContentDocumentMapperParser
extends AbstractIndexComponent
implements DocumentMapperParser


Field Summary
 
Fields inherited from class org.elasticsearch.index.AbstractIndexComponent
componentSettings, index, indexSettings, logger
 
Constructor Summary
XContentDocumentMapperParser(Index index, AnalysisService analysisService)
           
XContentDocumentMapperParser(Index index, Settings indexSettings, AnalysisService analysisService)
           
 
Method Summary
 XContentDocumentMapper parse(java.lang.String source)
          Parses the source mapping definition into a document mapper.
 XContentDocumentMapper parse(java.lang.String type, java.lang.String source)
          Parses the source mapping definition into a document mapper with the specified type (overriding the one defined in the source mapping).
 XContentDocumentMapper parse(java.lang.String type, java.lang.String source, java.lang.String defaultSource)
          Parses the source mapping definition into a document mapper with the specified type (overriding the one defined in the source mapping).
 XContentMapper.TypeParser.ParserContext parserContext()
           
 void putTypeParser(java.lang.String type, XContentMapper.TypeParser typeParser)
           
 
Methods inherited from class org.elasticsearch.index.AbstractIndexComponent
index, nodeName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XContentDocumentMapperParser

public XContentDocumentMapperParser(Index index,
                                    AnalysisService analysisService)

XContentDocumentMapperParser

public XContentDocumentMapperParser(Index index,
                                    @IndexSettings
                                    Settings indexSettings,
                                    AnalysisService analysisService)
Method Detail

putTypeParser

public void putTypeParser(java.lang.String type,
                          XContentMapper.TypeParser typeParser)

parserContext

public XContentMapper.TypeParser.ParserContext parserContext()

parse

public XContentDocumentMapper parse(java.lang.String source)
                             throws MapperParsingException
Description copied from interface: DocumentMapperParser
Parses the source mapping definition into a document mapper.

Specified by:
parse in interface DocumentMapperParser
Throws:
MapperParsingException

parse

public XContentDocumentMapper parse(@Nullable
                                    java.lang.String type,
                                    java.lang.String source)
                             throws MapperParsingException
Description copied from interface: DocumentMapperParser
Parses the source mapping definition into a document mapper with the specified type (overriding the one defined in the source mapping).

Specified by:
parse in interface DocumentMapperParser
Throws:
MapperParsingException

parse

public XContentDocumentMapper parse(@Nullable
                                    java.lang.String type,
                                    java.lang.String source,
                                    java.lang.String defaultSource)
                             throws MapperParsingException
Description copied from interface: DocumentMapperParser
Parses the source mapping definition into a document mapper with the specified type (overriding the one defined in the source mapping).

Specified by:
parse in interface DocumentMapperParser
Throws:
MapperParsingException