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 void
addDoc(ParseContext.Document doc)
void
addDynamicMapper(Mapper mapper)
Add a new mapper dynamically created while parsing.void
addIgnoredField(java.lang.String field)
Add the givenfield
to the set of ignored fields.ParseContext.Document
doc()
DocumentMapper
docMapper()
DocumentMapperParser
docMapperParser()
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.IndexSettings
indexSettings()
java.util.Iterator<ParseContext.Document>
iterator()
MapperService
mapperService()
java.lang.Iterable<ParseContext.Document>
nonRootDocuments()
Returns an Iterable over all non-root documents.XContentParser
parser()
ContentPath
path()
RootObjectMapper
root()
ParseContext.Document
rootDoc()
SeqNoFieldMapper.SequenceIDFields
seqID()
void
seqID(SeqNoFieldMapper.SequenceIDFields seqID)
SourceToParse
sourceToParse()
org.apache.lucene.document.Field
version()
void
version(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:
docMapperParser
in classParseContext
-
indexSettings
- Specified by:
indexSettings
in classParseContext
-
sourceToParse
- Specified by:
sourceToParse
in classParseContext
-
path
- Specified by:
path
in classParseContext
-
parser
- Specified by:
parser
in classParseContext
-
rootDoc
- Specified by:
rootDoc
in classParseContext
-
doc
- Specified by:
doc
in classParseContext
-
addDoc
- Specified by:
addDoc
in classParseContext
-
root
- Specified by:
root
in classParseContext
-
docMapper
- Specified by:
docMapper
in classParseContext
-
mapperService
- Specified by:
mapperService
in classParseContext
-
version
public org.apache.lucene.document.Field version()- Specified by:
version
in classParseContext
-
version
public void version(org.apache.lucene.document.Field version)- Specified by:
version
in classParseContext
-
seqID
- Specified by:
seqID
in classParseContext
-
seqID
- Specified by:
seqID
in classParseContext
-
addDynamicMapper
Description copied from class:ParseContext
Add a new mapper dynamically created while parsing.- Specified by:
addDynamicMapper
in classParseContext
-
getDynamicMappers
Description copied from class:ParseContext
Get dynamic mappers created while parsing.- Specified by:
getDynamicMappers
in classParseContext
-
nonRootDocuments
Description copied from class:ParseContext
Returns an Iterable over all non-root documents. If there are no non-root documents the iterable will return an empty iterator.- Specified by:
nonRootDocuments
in classParseContext
-
iterator
-
addIgnoredField
public void addIgnoredField(java.lang.String field)Description copied from class:ParseContext
Add the givenfield
to the set of ignored fields.- Specified by:
addIgnoredField
in classParseContext
-
getIgnoredFields
public java.util.Collection<java.lang.String> getIgnoredFields()Description copied from class:ParseContext
Return the collection of fields that have been ignored so far.- Specified by:
getIgnoredFields
in classParseContext
-