Package org.elasticsearch.index.mapper
Class ParsedDocument
java.lang.Object
org.elasticsearch.index.mapper.ParsedDocument
public class ParsedDocument
extends java.lang.Object
The result of parsing a document.
-
Constructor Summary
Constructors Constructor Description ParsedDocument(org.apache.lucene.document.Field version, SeqNoFieldMapper.SequenceIDFields seqID, java.lang.String id, java.lang.String type, java.lang.String routing, java.util.List<ParseContext.Document> documents, BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType, Mapping dynamicMappingsUpdate)
-
Method Summary
Modifier and Type Method Description void
addDynamicMappingsUpdate(Mapping update)
java.util.List<ParseContext.Document>
docs()
Mapping
dynamicMappingsUpdate()
Return dynamic updates to mappings ornull
if there were no updates to the mappings.org.elasticsearch.common.xcontent.XContentType
getXContentType()
java.lang.String
id()
ParseContext.Document
rootDoc()
java.lang.String
routing()
void
setSource(BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType)
BytesReference
source()
java.lang.String
toString()
java.lang.String
type()
void
updateSeqID(long sequenceNumber, long primaryTerm)
org.apache.lucene.document.Field
version()
-
Constructor Details
-
ParsedDocument
public ParsedDocument(org.apache.lucene.document.Field version, SeqNoFieldMapper.SequenceIDFields seqID, java.lang.String id, java.lang.String type, java.lang.String routing, java.util.List<ParseContext.Document> documents, BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType, Mapping dynamicMappingsUpdate)
-
-
Method Details
-
id
public java.lang.String id() -
type
public java.lang.String type() -
version
public org.apache.lucene.document.Field version() -
updateSeqID
public void updateSeqID(long sequenceNumber, long primaryTerm) -
routing
public java.lang.String routing() -
rootDoc
-
docs
-
source
-
getXContentType
public org.elasticsearch.common.xcontent.XContentType getXContentType() -
setSource
public void setSource(BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType) -
dynamicMappingsUpdate
Return dynamic updates to mappings ornull
if there were no updates to the mappings. -
addDynamicMappingsUpdate
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-