Package org.opensearch.index.mapper
Class ParseContext.InternalParseContext
java.lang.Object
org.opensearch.index.mapper.ParseContext
org.opensearch.index.mapper.ParseContext.InternalParseContext
- All Implemented Interfaces:
Iterable<ParseContext.Document>
- Enclosing class:
ParseContext
An internal parse context
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.index.mapper.ParseContext
ParseContext.Document, ParseContext.InternalParseContext
-
Constructor Summary
ConstructorDescriptionInternalParseContext
(IndexSettings indexSettings, DocumentMapperParser docMapperParser, DocumentMapper docMapper, SourceToParse source, org.opensearch.core.xcontent.XContentParser parser) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addDynamicMapper
(Mapper mapper) Add a new mapper dynamically created while parsing.void
addIgnoredField
(String field) Add the givenfield
to the set of ignored fields.void
void
void
void
doc()
Get dynamic mappers created while parsing.Return the collection of fields that have been ignored so far.void
void
iterator()
Returns an Iterable over all non-root documents.org.opensearch.core.xcontent.XContentParser
parser()
path()
root()
rootDoc()
seqID()
void
org.apache.lucene.document.Field
version()
void
version
(org.apache.lucene.document.Field version) Methods inherited from class org.opensearch.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 Details
-
InternalParseContext
public InternalParseContext(IndexSettings indexSettings, DocumentMapperParser docMapperParser, DocumentMapper docMapper, SourceToParse source, org.opensearch.core.xcontent.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
public org.opensearch.core.xcontent.XContentParser 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
Description copied from class:ParseContext
Add the givenfield
to the set of ignored fields.- Specified by:
addIgnoredField
in classParseContext
-
getIgnoredFields
Description copied from class:ParseContext
Return the collection of fields that have been ignored so far.- Specified by:
getIgnoredFields
in classParseContext
-
incrementFieldCurrentDepth
public void incrementFieldCurrentDepth()- Specified by:
incrementFieldCurrentDepth
in classParseContext
-
decrementFieldCurrentDepth
public void decrementFieldCurrentDepth()- Specified by:
decrementFieldCurrentDepth
in classParseContext
-
checkFieldDepthLimit
public void checkFieldDepthLimit()- Specified by:
checkFieldDepthLimit
in classParseContext
-
incrementFieldArrayDepth
public void incrementFieldArrayDepth()- Specified by:
incrementFieldArrayDepth
in classParseContext
-
decrementFieldArrayDepth
public void decrementFieldArrayDepth()- Specified by:
decrementFieldArrayDepth
in classParseContext
-
checkFieldArrayDepthLimit
public void checkFieldArrayDepthLimit()- Specified by:
checkFieldArrayDepthLimit
in classParseContext
-