org.elasticsearch.index.mapper
Class ParseContext

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

public class ParseContext
extends Object


Constructor Summary
ParseContext(String index, Settings indexSettings, DocumentMapperParser docMapperParser, DocumentMapper docMapper, ContentPath path)
           
 
Method Summary
 void addDoc(org.apache.lucene.document.Document doc)
           
 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()
           
 List<org.apache.lucene.document.Document> docs()
           
 Object externalValue()
           
 void externalValue(Object externalValue)
           
 boolean externalValueSet()
           
 boolean flyweight()
           
 String id()
           
 void id(String id)
          Really, just the id mapper should set this.
 String ignoredValue(String indexName)
           
 void ignoredValue(String indexName, String value)
           
 boolean includeInAll(Boolean includeInAll, FieldMapper mapper)
           
 String index()
           
 Settings indexSettings()
           
 DocumentMapper.ParseListener listener()
           
 boolean mappingsModified()
           
 XContentParser parser()
           
 ContentPath path()
           
 void reset(XContentParser parser, org.apache.lucene.document.Document document, SourceToParse source, DocumentMapper.ParseListener listener)
           
 RootObjectMapper root()
           
 org.apache.lucene.document.Document rootDoc()
           
 void setMappingsModified()
           
 BytesReference source()
           
 void source(BytesReference source)
           
 SourceToParse sourceToParse()
           
 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)
           
 String type()
           
 String uid()
           
 void uid(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(String index,
                    @Nullable
                    Settings indexSettings,
                    DocumentMapperParser docMapperParser,
                    DocumentMapper docMapper,
                    ContentPath path)
Method Detail

reset

public void reset(XContentParser parser,
                  org.apache.lucene.document.Document document,
                  SourceToParse source,
                  DocumentMapper.ParseListener listener)

flyweight

public boolean flyweight()

docMapperParser

public DocumentMapperParser docMapperParser()

mappingsModified

public boolean mappingsModified()

setMappingsModified

public void setMappingsModified()

index

public String index()

indexSettings

@Nullable
public Settings indexSettings()

type

public String type()

sourceToParse

public SourceToParse sourceToParse()

source

public BytesReference source()

source

public void source(BytesReference source)

path

public ContentPath path()

parser

public XContentParser parser()

listener

public DocumentMapper.ParseListener listener()

rootDoc

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

docs

public 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 String id()

ignoredValue

public void ignoredValue(String indexName,
                         String value)

ignoredValue

public String ignoredValue(String indexName)

id

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


uid

public String uid()

uid

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


includeInAll

public boolean includeInAll(Boolean includeInAll,
                            FieldMapper mapper)

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(Object externalValue)

externalValueSet

public boolean externalValueSet()

externalValue

public Object externalValue()

stringBuilder

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



Copyright © 2009-2012. All Rights Reserved.