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 void
addDoc(ParseContext.Document doc)
void
addDynamicMapper(Mapper mapper)
Add a new mapper dynamically created while parsing.void
addDynamicRuntimeField(RuntimeFieldType runtimeField)
Add a new runtime field dynamically created while parsing.void
addIgnoredField(java.lang.String field)
Add the givenfield
to the set of ignored fields.ParseContext.Document
doc()
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.DynamicRuntimeFieldsBuilder
getDynamicRuntimeFieldsBuilder()
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.MetadataFieldMapper
getMetadataMapper(java.lang.String mapperName)
ObjectMapper
getObjectMapper(java.lang.String name)
IndexAnalyzers
indexAnalyzers()
IndexSettings
indexSettings()
MappingLookup
mappingLookup()
java.lang.Iterable<ParseContext.Document>
nonRootDocuments()
Returns an Iterable over all non-root documents.org.elasticsearch.common.xcontent.XContentParser
parser()
Mapper.TypeParser.ParserContext
parserContext(DateFormatter dateFormatter)
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
Methods 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:
parserContext
in classParseContext
-
indexSettings
- Specified by:
indexSettings
in classParseContext
-
sourceToParse
- Specified by:
sourceToParse
in classParseContext
-
path
- Specified by:
path
in classParseContext
-
parser
public org.elasticsearch.common.xcontent.XContentParser parser()- Specified by:
parser
in classParseContext
-
rootDoc
- Specified by:
rootDoc
in classParseContext
-
docs
- Specified by:
docs
in classParseContext
-
doc
- Specified by:
doc
in classParseContext
-
addDoc
- Specified by:
addDoc
in classParseContext
-
root
- Specified by:
root
in classParseContext
-
mappingLookup
- Specified by:
mappingLookup
in classParseContext
-
getMetadataMapper
- Specified by:
getMetadataMapper
in classParseContext
-
indexAnalyzers
- Specified by:
indexAnalyzers
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
-
getObjectMapper
- Specified by:
getObjectMapper
in classParseContext
-
addDynamicRuntimeField
Description copied from class:ParseContext
Add a new runtime field dynamically created while parsing.- Specified by:
addDynamicRuntimeField
in classParseContext
-
getDynamicRuntimeFields
Description copied from class:ParseContext
Get dynamic runtime fields created while parsing.- Specified by:
getDynamicRuntimeFields
in classParseContext
-
getDynamicRuntimeFieldsBuilder
Description copied from class:ParseContext
Retrieve the builder for dynamically created runtime fields- Specified by:
getDynamicRuntimeFieldsBuilder
in classParseContext
- See Also:
MapperPlugin.getDynamicRuntimeFieldsBuilder()
-
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
-
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
-