public abstract class ParseContext
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ParseContext.Document
Fork of
Document with additional functionality. |
static class |
ParseContext.InternalParseContext |
Constructor and Description |
---|
ParseContext() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addDoc(ParseContext.Document doc) |
abstract void |
addDynamicMapper(Mapper update)
Add a new mapper dynamically created while parsing.
|
abstract AllEntries |
allEntries() |
abstract AnalysisService |
analysisService() |
ParseContext |
createCopyToContext()
Return a new context that will be within a copy-to operation.
|
ParseContext |
createExternalValueContext(java.lang.Object externalValue)
Return a new context that will have the external value set.
|
ParseContext |
createMultiFieldContext()
Return a new context that will be within multi-fields.
|
ParseContext |
createNestedContext(java.lang.String fullPath)
Return a new context that will be used within a nested document.
|
abstract ParseContext.Document |
doc() |
abstract DocumentMapper |
docMapper() |
abstract DocumentMapperParser |
docMapperParser() |
abstract java.util.List<ParseContext.Document> |
docs() |
java.lang.Object |
externalValue() |
boolean |
externalValueSet() |
abstract java.util.List<Mapper> |
getDynamicMappers()
Get dynamic mappers created while parsing.
|
boolean |
includeInAll(java.lang.Boolean includeInAll,
FieldMapper mapper) |
abstract Settings |
indexSettings() |
boolean |
isWithinCopyTo() |
boolean |
isWithinMultiFields() |
abstract MapperService |
mapperService() |
ParseContext |
overridePath(ContentPath path)
Return a new context that will have the provided path.
|
<T> T |
parseExternalValue(java.lang.Class<T> clazz)
Try to parse an externalValue if any
|
abstract XContentParser |
parser() |
abstract ContentPath |
path() |
abstract RootObjectMapper |
root() |
abstract ParseContext.Document |
rootDoc() |
abstract SourceToParse |
sourceToParse() |
ParseContext |
switchDoc(ParseContext.Document document)
Return a new context that has the provided document as the current document.
|
abstract org.apache.lucene.document.Field |
version() |
abstract void |
version(org.apache.lucene.document.Field version) |
public abstract DocumentMapperParser docMapperParser()
public final ParseContext createCopyToContext()
public boolean isWithinCopyTo()
public final ParseContext createMultiFieldContext()
public final ParseContext createNestedContext(java.lang.String fullPath)
public final ParseContext switchDoc(ParseContext.Document document)
public final ParseContext overridePath(ContentPath path)
public boolean isWithinMultiFields()
public abstract SourceToParse sourceToParse()
public abstract ContentPath path()
public abstract XContentParser parser()
public abstract ParseContext.Document rootDoc()
public abstract java.util.List<ParseContext.Document> docs()
public abstract ParseContext.Document doc()
protected abstract void addDoc(ParseContext.Document doc)
public abstract RootObjectMapper root()
public abstract DocumentMapper docMapper()
public abstract AnalysisService analysisService()
public abstract MapperService mapperService()
public abstract org.apache.lucene.document.Field version()
public abstract void version(org.apache.lucene.document.Field version)
public final boolean includeInAll(java.lang.Boolean includeInAll, FieldMapper mapper)
public abstract AllEntries allEntries()
public final ParseContext createExternalValueContext(java.lang.Object externalValue)
public boolean externalValueSet()
public java.lang.Object externalValue()
public final <T> T parseExternalValue(java.lang.Class<T> clazz)
clazz
- Expected class for external valuepublic abstract void addDynamicMapper(Mapper update)
public abstract java.util.List<Mapper> getDynamicMappers()