org.elasticsearch.index.mapper.xcontent
Class XContentDocumentMapperParser
java.lang.Object
org.elasticsearch.index.AbstractIndexComponent
org.elasticsearch.index.mapper.xcontent.XContentDocumentMapperParser
- All Implemented Interfaces:
- IndexComponent, DocumentMapperParser
public class XContentDocumentMapperParser
- extends AbstractIndexComponent
- implements DocumentMapperParser
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). |
void |
putTypeParser(java.lang.String type,
XContentTypeParser typeParser)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XContentDocumentMapperParser
public XContentDocumentMapperParser(Index index,
AnalysisService analysisService)
XContentDocumentMapperParser
public XContentDocumentMapperParser(Index index,
@IndexSettings
Settings indexSettings,
AnalysisService analysisService)
putTypeParser
public void putTypeParser(java.lang.String type,
XContentTypeParser typeParser)
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