public static class Engine.Index extends Engine.Operation
Engine.Operation.Origin
Constructor and Description |
---|
Index(org.apache.lucene.index.Term uid,
ParsedDocument doc) |
Index(org.apache.lucene.index.Term uid,
ParsedDocument doc,
long version) |
Index(org.apache.lucene.index.Term uid,
ParsedDocument doc,
long version,
VersionType versionType,
Engine.Operation.Origin origin,
long startTime) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ParseContext.Document> |
docs() |
protected int |
estimatedSizeInBytes() |
java.lang.String |
id() |
java.lang.String |
parent() |
ParsedDocument |
parsedDoc() |
java.lang.String |
routing() |
BytesReference |
source() |
long |
timestamp() |
long |
ttl() |
java.lang.String |
type() |
void |
updateVersion(long version) |
endTime, endTime, getTranslogLocation, origin, setTranslogLocation, sizeInBytes, startTime, uid, version, versionType
public Index(org.apache.lucene.index.Term uid, ParsedDocument doc, long version, VersionType versionType, Engine.Operation.Origin origin, long startTime)
public Index(org.apache.lucene.index.Term uid, ParsedDocument doc)
public Index(org.apache.lucene.index.Term uid, ParsedDocument doc, long version)
public ParsedDocument parsedDoc()
public java.lang.String type()
public java.lang.String id()
public java.lang.String routing()
public long timestamp()
public long ttl()
public void updateVersion(long version)
updateVersion
in class Engine.Operation
public java.lang.String parent()
public java.util.List<ParseContext.Document> docs()
public BytesReference source()
protected int estimatedSizeInBytes()
estimatedSizeInBytes
in class Engine.Operation