java.lang.Iterable<ParseContext.Document>
ParseContext.InternalParseContext
public abstract class ParseContext extends java.lang.Object implements java.lang.Iterable<ParseContext.Document>
Modifier and Type | Class | Description |
---|---|---|
static class |
ParseContext.Document |
Fork of
Document with additional functionality. |
static class |
ParseContext.InternalParseContext |
Constructor | Description |
---|---|
ParseContext() |
Modifier and Type | Method | Description |
---|---|---|
protected abstract void |
addDoc(ParseContext.Document doc) |
|
abstract void |
addDynamicMapper(Mapper update) |
Add a new mapper dynamically created while parsing.
|
abstract AllEntries |
allEntries() |
|
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() |
|
java.lang.Object |
externalValue() |
|
boolean |
externalValueSet() |
|
abstract java.util.List<Mapper> |
getDynamicMappers() |
Get dynamic mappers created while parsing.
|
java.lang.Boolean |
getIncludeInAllDefault() |
Whether field values should be added to the _all field by default.
|
boolean |
includeInAll(java.lang.Boolean includeInAll,
FieldMapper mapper) |
|
abstract Settings |
indexSettings() |
|
boolean |
isWithinCopyTo() |
|
boolean |
isWithinMultiFields() |
|
abstract MapperService |
mapperService() |
|
abstract java.lang.Iterable<ParseContext.Document> |
nonRootDocuments() |
Returns an Iterable over all non-root documents.
|
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 SeqNoFieldMapper.SequenceIDFields |
seqID() |
|
abstract void |
seqID(SeqNoFieldMapper.SequenceIDFields seqID) |
|
ParseContext |
setIncludeInAllDefault(boolean includeInAll) |
Return a view of this
ParseContext that changes the return
value of getIncludeInAllDefault() . |
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 java.lang.Iterable<ParseContext.Document> nonRootDocuments()
public abstract DocumentMapperParser docMapperParser()
public final ParseContext setIncludeInAllDefault(boolean includeInAll)
ParseContext
that changes the return
value of getIncludeInAllDefault()
.public java.lang.Boolean getIncludeInAllDefault()
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 ParseContext.Document doc()
protected abstract void addDoc(ParseContext.Document doc)
public abstract RootObjectMapper root()
public abstract DocumentMapper docMapper()
public abstract MapperService mapperService()
public abstract org.apache.lucene.document.Field version()
public abstract void version(org.apache.lucene.document.Field version)
public abstract SeqNoFieldMapper.SequenceIDFields seqID()
public abstract void seqID(SeqNoFieldMapper.SequenceIDFields seqID)
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()