org.elasticsearch.index.mapper.json
Class JsonDocumentMapperParser

java.lang.Object
  extended by org.elasticsearch.index.mapper.json.JsonDocumentMapperParser
All Implemented Interfaces:
DocumentMapperParser

public class JsonDocumentMapperParser
extends java.lang.Object
implements DocumentMapperParser


Constructor Summary
JsonDocumentMapperParser(AnalysisService analysisService)
           
 
Method Summary
 DocumentMapper parse(java.lang.String source)
          Parses the source mapping definition into a document mapper.
 DocumentMapper 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).
 void putTypeParser(java.lang.String type, JsonTypeParser typeParser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JsonDocumentMapperParser

public JsonDocumentMapperParser(AnalysisService analysisService)
Method Detail

putTypeParser

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

parse

public DocumentMapper 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 DocumentMapper parse(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