Package org.elasticsearch.index.engine
Class Engine.Index
org.elasticsearch.index.engine.Engine.Operation
org.elasticsearch.index.engine.Engine.Index
- Enclosing class:
- Engine
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.engine.Engine.Operation
Engine.Operation.Origin, Engine.Operation.TYPE
-
Constructor Summary
ConstructorDescriptionIndex(org.apache.lucene.index.Term uid, long primaryTerm, ParsedDocument doc)
Index(org.apache.lucene.index.Term uid, ParsedDocument doc, long seqNo, long primaryTerm, long version, VersionType versionType, Engine.Operation.Origin origin, long startTime, long autoGeneratedIdTimestamp, boolean isRetry, long ifSeqNo, long ifPrimaryTerm)
-
Method Summary
Modifier and TypeMethodDescriptiondocs()
int
long
Returns a positive timestamp if the ID of this document is auto-generated by elasticsearch.long
long
id()
boolean
isRetry()
Returnstrue
if this index requests has been retried on the coordinating node and can therefor be delivered multiple times.routing()
source()
type()
Methods inherited from class org.elasticsearch.index.engine.Engine.Operation
origin, primaryTerm, seqNo, startTime, uid, version, versionType
Methods inherited from class java.lang.
, , , , , , , , , ,
-
Constructor Details
-
Index
public Index(org.apache.lucene.index.Term uid, ParsedDocument doc, long seqNo, long primaryTerm, long version, VersionType versionType, Engine.Operation.Origin origin, long startTime, long autoGeneratedIdTimestamp, boolean isRetry, long ifSeqNo, long ifPrimaryTerm) -
Index
-
-
Method Details
-
parsedDoc
-
type
public type()- Specified by:
type
in classEngine.Operation
-
id
public id() -
operationType
- Specified by:
operationType
in classEngine.Operation
-
routing
public routing() -
docs
-
source
-
estimatedSizeInBytes
public int estimatedSizeInBytes()- Specified by:
estimatedSizeInBytes
in classEngine.Operation
-
getAutoGeneratedIdTimestamp
public long getAutoGeneratedIdTimestamp()Returns a positive timestamp if the ID of this document is auto-generated by elasticsearch. if this property is non-negative indexing code might optimize the addition of this document due to it's append only nature. -
isRetry
public boolean isRetry()Returnstrue
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 -
getIfSeqNo
public long getIfSeqNo() -
getIfPrimaryTerm
public long getIfPrimaryTerm()
-