Package org.elasticsearch.index.mapper
Class ParsedDocument
- java.lang.Object
-
- org.elasticsearch.index.mapper.ParsedDocument
-
public class ParsedDocument extends Object
The result of parsing a document.
-
-
Constructor Summary
Constructors Constructor Description ParsedDocument(Field version, SeqNoFieldMapper.SequenceIDFields seqID, String id, String type, String routing, List<ParseContext.Document> documents, BytesReference source, XContentType xContentType, Mapping dynamicMappingsUpdate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDynamicMappingsUpdate(Mapping update)List<ParseContext.Document>docs()MappingdynamicMappingsUpdate()Return dynamic updates to mappings ornullif there were no updates to the mappings.XContentTypegetXContentType()Stringid()ParseContext.DocumentrootDoc()Stringrouting()voidsetSource(BytesReference source, XContentType xContentType)BytesReferencesource()StringtoString()Stringtype()voidupdateSeqID(long sequenceNumber, long primaryTerm)Fieldversion()
-
-
-
Constructor Detail
-
ParsedDocument
public ParsedDocument(Field version, SeqNoFieldMapper.SequenceIDFields seqID, String id, String type, String routing, List<ParseContext.Document> documents, BytesReference source, XContentType xContentType, Mapping dynamicMappingsUpdate)
-
-
Method Detail
-
id
public String id()
-
type
public String type()
-
version
public Field version()
-
updateSeqID
public void updateSeqID(long sequenceNumber, long primaryTerm)
-
routing
public String routing()
-
rootDoc
public ParseContext.Document rootDoc()
-
docs
public List<ParseContext.Document> docs()
-
source
public BytesReference source()
-
getXContentType
public XContentType getXContentType()
-
setSource
public void setSource(BytesReference source, XContentType xContentType)
-
dynamicMappingsUpdate
public Mapping dynamicMappingsUpdate()
Return dynamic updates to mappings ornullif there were no updates to the mappings.
-
addDynamicMappingsUpdate
public void addDynamicMappingsUpdate(Mapping update)
-
-