org.elasticsearch.index.mapper
Class ParseContext

java.lang.Object
  extended by org.elasticsearch.index.mapper.ParseContext

@NotThreadSafe
public class ParseContext
extends java.lang.Object


Nested Class Summary
static class ParseContext.ParsedIdState
           
 
Constructor Summary
ParseContext(java.lang.String index, DocumentMapperParser docMapperParser, DocumentMapper docMapper, ContentPath path)
           
 
Method Summary
 void addDoc(org.apache.lucene.document.Document doc)
           
 void addedMapper()
           
 AllEntries allEntries()
           
 AnalysisService analysisService()
           
 org.apache.lucene.analysis.Analyzer analyzer()
           
 void analyzer(org.apache.lucene.analysis.Analyzer analyzer)
           
 org.apache.lucene.document.Document doc()
           
 DocumentMapper docMapper()
           
 DocumentMapperParser docMapperParser()
           
 java.util.List<org.apache.lucene.document.Document> docs()
           
 java.lang.Object externalValue()
           
 void externalValue(java.lang.Object externalValue)
           
 boolean externalValueSet()
           
 boolean flyweight()
           
 java.lang.String id()
           
 void id(java.lang.String id)
          Really, just the id mapper should set this.
 java.lang.String ignoredValue(java.lang.String indexName)
           
 void ignoredValue(java.lang.String indexName, java.lang.String value)
           
 boolean includeInAll(java.lang.Boolean specificIncludeInAll)
          Is all included or not.
 java.lang.String index()
           
 DocumentMapper.ParseListener listener()
           
 boolean mappersAdded()
           
 void parsedId(ParseContext.ParsedIdState parsedIdState)
           
 ParseContext.ParsedIdState parsedIdState()
           
 XContentParser parser()
           
 ContentPath path()
           
 void reset(XContentParser parser, org.apache.lucene.document.Document document, java.lang.String type, byte[] source, boolean flyweight, DocumentMapper.ParseListener listener)
           
 RootObjectMapper root()
           
 org.apache.lucene.document.Document rootDoc()
           
 byte[] source()
           
 void source(byte[] source)
           
 java.lang.StringBuilder stringBuilder()
          A string builder that can be used to construct complex names for example.
 org.apache.lucene.document.Document switchDoc(org.apache.lucene.document.Document doc)
           
 java.lang.String type()
           
 java.lang.String uid()
           
 void uid(java.lang.String uid)
          Really, just the uid mapper should set this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseContext

public ParseContext(java.lang.String index,
                    DocumentMapperParser docMapperParser,
                    DocumentMapper docMapper,
                    ContentPath path)
Method Detail

reset

public void reset(XContentParser parser,
                  org.apache.lucene.document.Document document,
                  java.lang.String type,
                  byte[] source,
                  boolean flyweight,
                  DocumentMapper.ParseListener listener)

flyweight

public boolean flyweight()

docMapperParser

public DocumentMapperParser docMapperParser()

mappersAdded

public boolean mappersAdded()

addedMapper

public void addedMapper()

index

public java.lang.String index()

type

public java.lang.String type()

source

public byte[] source()

source

public void source(byte[] source)

path

public ContentPath path()

parser

public XContentParser parser()

listener

public DocumentMapper.ParseListener listener()

rootDoc

public org.apache.lucene.document.Document rootDoc()

docs

public java.util.List<org.apache.lucene.document.Document> docs()

doc

public org.apache.lucene.document.Document doc()

addDoc

public void addDoc(org.apache.lucene.document.Document doc)

switchDoc

public org.apache.lucene.document.Document switchDoc(org.apache.lucene.document.Document doc)

root

public RootObjectMapper root()

docMapper

public DocumentMapper docMapper()

analysisService

public AnalysisService analysisService()

id

public java.lang.String id()

parsedId

public void parsedId(ParseContext.ParsedIdState parsedIdState)

parsedIdState

public ParseContext.ParsedIdState parsedIdState()

ignoredValue

public void ignoredValue(java.lang.String indexName,
                         java.lang.String value)

ignoredValue

public java.lang.String ignoredValue(java.lang.String indexName)

id

public void id(java.lang.String id)
Really, just the id mapper should set this.


uid

public java.lang.String uid()

uid

public void uid(java.lang.String uid)
Really, just the uid mapper should set this.


includeInAll

public boolean includeInAll(java.lang.Boolean specificIncludeInAll)
Is all included or not. Will always disable it if AllFieldMapper.enabled() is false. If its enabled, then will return true only if the specific flag is null or its actual value (so, if not set, defaults to "true").


allEntries

public AllEntries allEntries()

analyzer

public org.apache.lucene.analysis.Analyzer analyzer()

analyzer

public void analyzer(org.apache.lucene.analysis.Analyzer analyzer)

externalValue

public void externalValue(java.lang.Object externalValue)

externalValueSet

public boolean externalValueSet()

externalValue

public java.lang.Object externalValue()

stringBuilder

public java.lang.StringBuilder stringBuilder()
A string builder that can be used to construct complex names for example. Its better to reuse the.