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
public static class Engine.Index extends Engine.Operation
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.index.engine.Engine.Operation
Engine.Operation.Origin, Engine.Operation.TYPE
-
Constructor Summary
Constructors Constructor Description Index(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 Type Method 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.long
getIfPrimaryTerm()
long
getIfSeqNo()
java.lang.String
id()
boolean
isRetry()
Returnstrue
if this index requests has been retried on the coordinating node and can therefor be delivered multiple times.Engine.Operation.TYPE
operationType()
ParsedDocument
parsedDoc()
java.lang.String
routing()
BytesReference
source()
java.lang.String
type()
Methods inherited from class org.elasticsearch.index.engine.Engine.Operation
origin, primaryTerm, seqNo, startTime, uid, version, versionType
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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 java.lang.String type()- Specified by:
type
in classEngine.Operation
-
id
public java.lang.String id() -
operationType
- Specified by:
operationType
in classEngine.Operation
-
routing
public java.lang.String 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()
-