Package org.elasticsearch.index.mapper
Class ParseContext.InternalParseContext
java.lang.Object
org.elasticsearch.index.mapper.ParseContext
org.elasticsearch.index.mapper.ParseContext.InternalParseContext
- 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(MappingLookup mappingLookup, java.util.function.Function<DateFormatter,Mapper.TypeParser.ParserContext> parserContextFunction, DynamicRuntimeFieldsBuilder dynamicRuntimeFieldsBuilder, SourceToParse source, org.elasticsearch.common.xcontent.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.voidaddDynamicRuntimeField(RuntimeFieldType runtimeField)Add a new runtime field dynamically created while parsing.voidaddIgnoredField(java.lang.String field)Add the givenfieldto the set of ignored fields.ParseContext.Documentdoc()java.util.List<ParseContext.Document>docs()java.util.List<Mapper>getDynamicMappers()Get dynamic mappers created while parsing.java.util.List<RuntimeFieldType>getDynamicRuntimeFields()Get dynamic runtime fields created while parsing.DynamicRuntimeFieldsBuildergetDynamicRuntimeFieldsBuilder()Retrieve the builder for dynamically created runtime fieldsjava.util.Collection<java.lang.String>getIgnoredFields()Return the collection of fields that have been ignored so far.MetadataFieldMappergetMetadataMapper(java.lang.String mapperName)ObjectMappergetObjectMapper(java.lang.String name)IndexAnalyzersindexAnalyzers()IndexSettingsindexSettings()MappingLookupmappingLookup()java.lang.Iterable<ParseContext.Document>nonRootDocuments()Returns an Iterable over all non-root documents.org.elasticsearch.common.xcontent.XContentParserparser()Mapper.TypeParser.ParserContextparserContext(DateFormatter dateFormatter)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, switchDocMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
InternalParseContext
public InternalParseContext(MappingLookup mappingLookup, java.util.function.Function<DateFormatter,Mapper.TypeParser.ParserContext> parserContextFunction, DynamicRuntimeFieldsBuilder dynamicRuntimeFieldsBuilder, SourceToParse source, org.elasticsearch.common.xcontent.XContentParser parser)
-
-
Method Details
-
parserContext
- Specified by:
parserContextin classParseContext
-
indexSettings
- Specified by:
indexSettingsin classParseContext
-
sourceToParse
- Specified by:
sourceToParsein classParseContext
-
path
- Specified by:
pathin classParseContext
-
parser
public org.elasticsearch.common.xcontent.XContentParser parser()- Specified by:
parserin classParseContext
-
rootDoc
- Specified by:
rootDocin classParseContext
-
docs
- Specified by:
docsin classParseContext
-
doc
- Specified by:
docin classParseContext
-
addDoc
- Specified by:
addDocin classParseContext
-
root
- Specified by:
rootin classParseContext
-
mappingLookup
- Specified by:
mappingLookupin classParseContext
-
getMetadataMapper
- Specified by:
getMetadataMapperin classParseContext
-
indexAnalyzers
- Specified by:
indexAnalyzersin 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
-
getObjectMapper
- Specified by:
getObjectMapperin classParseContext
-
addDynamicRuntimeField
Description copied from class:ParseContextAdd a new runtime field dynamically created while parsing.- Specified by:
addDynamicRuntimeFieldin classParseContext
-
getDynamicRuntimeFields
Description copied from class:ParseContextGet dynamic runtime fields created while parsing.- Specified by:
getDynamicRuntimeFieldsin classParseContext
-
getDynamicRuntimeFieldsBuilder
Description copied from class:ParseContextRetrieve the builder for dynamically created runtime fields- Specified by:
getDynamicRuntimeFieldsBuilderin classParseContext- See Also:
MapperPlugin.getDynamicRuntimeFieldsBuilder()
-
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
-
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
-