Package org.elasticsearch.index.engine
Class Engine.Index
java.lang.Object
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
ConstructorsConstructorDescriptionIndex(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()intlongReturns a positive timestamp if the ID of this document is auto-generated by elasticsearch.longlongid()booleanisRetry()Returnstrueif 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
-
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
- Specified by:
typein classEngine.Operation
-
id
-
operationType
- Specified by:
operationTypein classEngine.Operation
-
routing
-
docs
-
source
-
estimatedSizeInBytes
public int estimatedSizeInBytes()- Specified by:
estimatedSizeInBytesin 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()Returnstrueif 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()
-