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,
VersionType versionType,
Engine.Operation.Origin origin,
long startTime,
long autoGeneratedIdTimestamp,
boolean isRetry) |
Modifier and Type | Method and Description |
---|---|
java.util.List<ParseContext.Document> |
docs() |
protected int |
estimatedSizeInBytes() |
long |
getAutoGeneratedIdTimestamp()
Returns a positive timestamp if the ID of this document is auto-generated by elasticsearch.
|
java.lang.String |
id() |
boolean |
isCreated() |
boolean |
isRetry()
Returns
true if this index requests has been retried on the coordinating node and can therefor be delivered
multiple times. |
java.lang.String |
parent() |
ParsedDocument |
parsedDoc() |
java.lang.String |
routing() |
void |
setCreated(boolean created) |
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, long autoGeneratedIdTimestamp, boolean isRetry)
public Index(org.apache.lucene.index.Term uid, ParsedDocument doc)
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()
public boolean isCreated()
public void setCreated(boolean created)
protected int estimatedSizeInBytes()
estimatedSizeInBytes
in class Engine.Operation
public long getAutoGeneratedIdTimestamp()
public boolean isRetry()
true
if this index requests has been retried on the coordinating node and can therefor be delivered
multiple times. Note: this might also be set to true if an equivalent event occurred like the replay of the transaction log