Package org.elasticsearch.index.mapper
Class ParseContext.InternalParseContext
java.lang.Object
org.elasticsearch.index.mapper.ParseContext
org.elasticsearch.index.mapper.ParseContext.InternalParseContext
- All Implemented Interfaces:
java.lang.Iterable<ParseContext.Document>
- Enclosing class:
- ParseContext
public static class ParseContext.InternalParseContext extends ParseContext
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.mapper.ParseContext
ParseContext.Document, ParseContext.InternalParseContext -
Constructor Summary
Constructors Constructor Description InternalParseContext(IndexSettings indexSettings, DocumentMapperParser docMapperParser, DocumentMapper docMapper, SourceToParse source, XContentParser parser) -
Method Summary
Modifier and Type Method Description protected voidaddDoc(ParseContext.Document doc)voidaddDynamicMapper(Mapper mapper)Add a new mapper dynamically created while parsing.voidaddIgnoredField(java.lang.String field)Add the givenfieldto the set of ignored fields.ParseContext.Documentdoc()DocumentMapperdocMapper()DocumentMapperParserdocMapperParser()java.util.List<Mapper>getDynamicMappers()Get dynamic mappers created while parsing.java.util.Collection<java.lang.String>getIgnoredFields()Return the collection of fields that have been ignored so far.IndexSettingsindexSettings()java.util.Iterator<ParseContext.Document>iterator()MapperServicemapperService()java.lang.Iterable<ParseContext.Document>nonRootDocuments()Returns an Iterable over all non-root documents.XContentParserparser()ContentPathpath()RootObjectMapperroot()ParseContext.DocumentrootDoc()SeqNoFieldMapper.SequenceIDFieldsseqID()voidseqID(SeqNoFieldMapper.SequenceIDFields seqID)SourceToParsesourceToParse()org.apache.lucene.document.Fieldversion()voidversion(org.apache.lucene.document.Field version)Methods inherited from class org.elasticsearch.index.mapper.ParseContext
createCopyToContext, createExternalValueContext, createMultiFieldContext, createNestedContext, externalValue, externalValueSet, isWithinCopyTo, isWithinMultiFields, overridePath, parseExternalValue, switchDoc
-
Constructor Details
-
InternalParseContext
public InternalParseContext(IndexSettings indexSettings, DocumentMapperParser docMapperParser, DocumentMapper docMapper, SourceToParse source, XContentParser parser)
-
-
Method Details
-
docMapperParser
- Specified by:
docMapperParserin classParseContext
-
indexSettings
- Specified by:
indexSettingsin classParseContext
-
sourceToParse
- Specified by:
sourceToParsein classParseContext
-
path
- Specified by:
pathin classParseContext
-
parser
- Specified by:
parserin classParseContext
-
rootDoc
- Specified by:
rootDocin classParseContext
-
doc
- Specified by:
docin classParseContext
-
addDoc
- Specified by:
addDocin classParseContext
-
root
- Specified by:
rootin classParseContext
-
docMapper
- Specified by:
docMapperin classParseContext
-
mapperService
- Specified by:
mapperServicein classParseContext
-
version
public org.apache.lucene.document.Field version()- Specified by:
versionin classParseContext
-
version
public void version(org.apache.lucene.document.Field version)- Specified by:
versionin classParseContext
-
seqID
- Specified by:
seqIDin classParseContext
-
seqID
- Specified by:
seqIDin classParseContext
-
addDynamicMapper
Description copied from class:ParseContextAdd a new mapper dynamically created while parsing.- Specified by:
addDynamicMapperin classParseContext
-
getDynamicMappers
Description copied from class:ParseContextGet dynamic mappers created while parsing.- Specified by:
getDynamicMappersin classParseContext
-
nonRootDocuments
Description copied from class:ParseContextReturns an Iterable over all non-root documents. If there are no non-root documents the iterable will return an empty iterator.- Specified by:
nonRootDocumentsin classParseContext
-
iterator
-
addIgnoredField
public void addIgnoredField(java.lang.String field)Description copied from class:ParseContextAdd the givenfieldto the set of ignored fields.- Specified by:
addIgnoredFieldin classParseContext
-
getIgnoredFields
public java.util.Collection<java.lang.String> getIgnoredFields()Description copied from class:ParseContextReturn the collection of fields that have been ignored so far.- Specified by:
getIgnoredFieldsin classParseContext
-