Package org.elasticsearch.index.mapper
Class ParsedDocument
org.elasticsearch.index.mapper.ParsedDocument
public class ParsedDocument
extends
The result of parsing a document.
-
Constructor Summary
ConstructorDescriptionParsedDocument(org.apache.lucene.document.Field version, SeqNoFieldMapper.SequenceIDFields seqID, id, type, routing, <LuceneDocument> documents, BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType, Mapping dynamicMappingsUpdate)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDynamicMappingsUpdate(Mapping update)
static ParsedDocument
type, id)
Create a delete tombstone document, which will be used in soft-update methods.docs()
Return dynamic updates to mappings ornull
if there were no updates to the mappings.org.elasticsearch.common.xcontent.XContentType
id()
static ParsedDocument
reason)
Create a no-op tombstone documentrootDoc()
routing()
void
setSource(BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType)
source()
toString()
type()
void
updateSeqID(long sequenceNumber, long primaryTerm)
org.apache.lucene.document.Field
version()
Methods inherited from class java.lang.
, , , , , , , , ,
-
Constructor Details
-
ParsedDocument
public ParsedDocument(org.apache.lucene.document.Field version, SeqNoFieldMapper.SequenceIDFields seqID, id, type, routing, <LuceneDocument> documents, BytesReference source, org.elasticsearch.common.xcontent.XContentType xContentType, Mapping dynamicMappingsUpdate)
-
-
Method Details
-
noopTombstone
public static reason)Create a no-op tombstone document- Parameters:
reason
- the reason for the no-op
-
deleteTombstone
public static type, id)Create a delete tombstone document, which will be used in soft-update methods. The returned document consists only _uid, _seqno, _term and _version fields; other metadata fields are excluded.- Parameters:
id
- the id of the deleted document
-
id
public id() -
type
public type() -
version
public org.apache.lucene.document.Field version() -
updateSeqID
public void updateSeqID(long sequenceNumber, long primaryTerm) -
routing
public 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 toString()- Overrides:
in class
-