public static class Engine.Index extends Engine.Operation
Engine.Operation.Origin, Engine.Operation.TYPE
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() |
int |
estimatedSizeInBytes() |
long |
getAutoGeneratedIdTimestamp()
Returns a positive timestamp if the ID of this document is auto-generated by elasticsearch.
|
java.lang.String |
id() |
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() |
BytesReference |
source() |
long |
timestamp() |
long |
ttl() |
java.lang.String |
type() |
origin, 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()
type
in class Engine.Operation
public java.lang.String id()
public java.lang.String routing()
public long timestamp()
public long ttl()
public java.lang.String parent()
public java.util.List<ParseContext.Document> docs()
public BytesReference source()
public 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