public abstract class ParseContext extends 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 |
---|---|
abstract void |
addDoc(ParseContext.Document doc) |
abstract void |
addDynamicMappingsUpdate(Mapper update)
Add a dynamic update to the root object mapper.
|
abstract AllEntries |
allEntries() |
abstract AnalysisService |
analysisService() |
ParseContext |
createCopyToContext()
Return a new context that will be within a copy-to operation.
|
ParseContext |
createExternalValueContext(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(String fullPath)
Return a new context that will be used within a nested document.
|
abstract ParseContext.Document |
doc() |
abstract float |
docBoost() |
abstract void |
docBoost(float docBoost) |
abstract DocumentMapper |
docMapper() |
abstract DocumentMapperParser |
docMapperParser() |
abstract List<ParseContext.Document> |
docs() |
abstract Mapper |
dynamicMappingsUpdate()
Get dynamic updates to the root object mapper.
|
Object |
externalValue() |
boolean |
externalValueSet() |
abstract boolean |
flyweight() |
abstract String |
id() |
abstract void |
id(String id)
Really, just the id mapper should set this.
|
boolean |
includeInAll(Boolean includeInAll,
FieldMapper mapper) |
abstract String |
index() |
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(Class<T> clazz)
Try to parse an externalValue if any
|
abstract XContentParser |
parser() |
abstract ContentPath |
path() |
abstract RootObjectMapper |
root() |
abstract ParseContext.Document |
rootDoc() |
abstract BytesReference |
source() |
abstract void |
source(BytesReference source) |
abstract SourceToParse |
sourceToParse() |
abstract StringBuilder |
stringBuilder()
A string builder that can be used to construct complex names for example.
|
ParseContext |
switchDoc(ParseContext.Document document)
Return a new context that has the provided document as the current document.
|
abstract String |
type() |
abstract org.apache.lucene.document.Field |
uid() |
abstract void |
uid(org.apache.lucene.document.Field uid)
Really, just the uid mapper should set this.
|
abstract org.apache.lucene.document.Field |
version() |
abstract void |
version(org.apache.lucene.document.Field version) |
public abstract boolean flyweight()
public abstract DocumentMapperParser docMapperParser()
public final ParseContext createCopyToContext()
public boolean isWithinCopyTo()
public final ParseContext createMultiFieldContext()
public final ParseContext createNestedContext(String fullPath)
public final ParseContext switchDoc(ParseContext.Document document)
public final ParseContext overridePath(ContentPath path)
public boolean isWithinMultiFields()
public abstract String index()
public abstract String type()
public abstract SourceToParse sourceToParse()
public abstract BytesReference source()
public abstract void source(BytesReference source)
public abstract ContentPath path()
public abstract XContentParser parser()
public abstract ParseContext.Document rootDoc()
public abstract List<ParseContext.Document> docs()
public abstract ParseContext.Document doc()
public abstract void addDoc(ParseContext.Document doc)
public abstract RootObjectMapper root()
public abstract DocumentMapper docMapper()
public abstract AnalysisService analysisService()
public abstract MapperService mapperService()
public abstract String id()
public abstract void id(String id)
public abstract org.apache.lucene.document.Field uid()
public abstract void uid(org.apache.lucene.document.Field uid)
public abstract org.apache.lucene.document.Field version()
public abstract void version(org.apache.lucene.document.Field version)
public final boolean includeInAll(Boolean includeInAll, FieldMapper mapper)
public abstract AllEntries allEntries()
public final ParseContext createExternalValueContext(Object externalValue)
public boolean externalValueSet()
public Object externalValue()
public final <T> T parseExternalValue(Class<T> clazz)
clazz
- Expected class for external valuepublic abstract float docBoost()
public abstract void docBoost(float docBoost)
public abstract StringBuilder stringBuilder()
public abstract void addDynamicMappingsUpdate(Mapper update)
public abstract Mapper dynamicMappingsUpdate()
Copyright © 2009–2016. All rights reserved.