public class ParsedDocument
extends java.lang.Object
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,
XContentType xContentType,
Mapping dynamicMappingsUpdate) |
Modifier and Type | Method | Description |
---|---|---|
void |
addDynamicMappingsUpdate(Mapping update) |
|
java.util.List<ParseContext.Document> |
docs() |
|
Mapping |
dynamicMappingsUpdate() |
Return dynamic updates to mappings or
null if there were no
updates to the mappings. |
XContentType |
getXContentType() |
|
java.lang.String |
id() |
|
java.lang.String |
parent() |
|
ParsedDocument |
parent(java.lang.String parent) |
|
ParseContext.Document |
rootDoc() |
|
java.lang.String |
routing() |
|
void |
setSource(BytesReference source,
XContentType xContentType) |
|
BytesReference |
source() |
|
java.lang.String |
toString() |
|
java.lang.String |
type() |
|
void |
updateSeqID(long sequenceNumber,
long primaryTerm) |
|
org.apache.lucene.document.Field |
version() |
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, XContentType xContentType, Mapping dynamicMappingsUpdate)
public java.lang.String id()
public java.lang.String type()
public org.apache.lucene.document.Field version()
public void updateSeqID(long sequenceNumber, long primaryTerm)
public java.lang.String routing()
public ParseContext.Document rootDoc()
public java.util.List<ParseContext.Document> docs()
public BytesReference source()
public XContentType getXContentType()
public void setSource(BytesReference source, XContentType xContentType)
public ParsedDocument parent(java.lang.String parent)
public java.lang.String parent()
public Mapping dynamicMappingsUpdate()
null
if there were no
updates to the mappings.public void addDynamicMappingsUpdate(Mapping update)
public java.lang.String toString()
toString
in class java.lang.Object