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:
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
-
Methods inherited from class org.elasticsearch.index.mapper.ParseContext
createCopyToContext, createExternalValueContext, createMultiFieldContext, createNestedContext, externalValue, externalValueSet, isWithinCopyTo, isWithinMultiFields, overridePath, parseExternalValue, switchDoc
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
InternalParseContext
public InternalParseContext(IndexSettings indexSettings, DocumentMapperParser docMapperParser, DocumentMapper docMapper, SourceToParse source, XContentParser parser)
-
-
Method Detail
-
docMapperParser
public DocumentMapperParser docMapperParser()
- Specified by:
docMapperParserin classParseContext
-
indexSettings
public IndexSettings indexSettings()
- Specified by:
indexSettingsin classParseContext
-
sourceToParse
public SourceToParse sourceToParse()
- Specified by:
sourceToParsein classParseContext
-
path
public ContentPath path()
- Specified by:
pathin classParseContext
-
parser
public XContentParser parser()
- Specified by:
parserin classParseContext
-
rootDoc
public ParseContext.Document rootDoc()
- Specified by:
rootDocin classParseContext
-
doc
public ParseContext.Document doc()
- Specified by:
docin classParseContext
-
addDoc
protected void addDoc(ParseContext.Document doc)
- Specified by:
addDocin classParseContext
-
root
public RootObjectMapper root()
- Specified by:
rootin classParseContext
-
docMapper
public DocumentMapper docMapper()
- Specified by:
docMapperin classParseContext
-
mapperService
public MapperService mapperService()
- Specified by:
mapperServicein classParseContext
-
version
public Field version()
- Specified by:
versionin classParseContext
-
version
public void version(Field version)
- Specified by:
versionin classParseContext
-
seqID
public SeqNoFieldMapper.SequenceIDFields seqID()
- Specified by:
seqIDin classParseContext
-
seqID
public void seqID(SeqNoFieldMapper.SequenceIDFields seqID)
- Specified by:
seqIDin classParseContext
-
addDynamicMapper
public void addDynamicMapper(Mapper mapper)
Description copied from class:ParseContextAdd a new mapper dynamically created while parsing.- Specified by:
addDynamicMapperin classParseContext
-
getDynamicMappers
public List<Mapper> getDynamicMappers()
Description copied from class:ParseContextGet dynamic mappers created while parsing.- Specified by:
getDynamicMappersin classParseContext
-
nonRootDocuments
public Iterable<ParseContext.Document> 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
public Iterator<ParseContext.Document> iterator()
-
addIgnoredField
public void addIgnoredField(String field)
Description copied from class:ParseContextAdd the givenfieldto the set of ignored fields.- Specified by:
addIgnoredFieldin classParseContext
-
getIgnoredFields
public Collection<String> getIgnoredFields()
Description copied from class:ParseContextReturn the collection of fields that have been ignored so far.- Specified by:
getIgnoredFieldsin classParseContext
-
-