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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ParseContext.Document>docs()intestimatedSizeInBytes()longgetAutoGeneratedIdTimestamp()Returns a positive timestamp if the ID of this document is auto-generated by elasticsearch.java.lang.Stringid()booleanisRetry()Returnstrueif this index requests has been retried on the coordinating node and can therefor be delivered multiple times.Engine.Operation.TYPEoperationType()java.lang.Stringparent()ParsedDocumentparsedDoc()java.lang.Stringrouting()BytesReferencesource()java.lang.Stringtype()-
Methods inherited from class org.elasticsearch.index.engine.Engine.Operation
origin, primaryTerm, seqNo, startTime, uid, version, versionType
-
-
-
-
Constructor Detail
-
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)
-
Index
public Index(org.apache.lucene.index.Term uid, long primaryTerm, ParsedDocument doc)
-
-
Method Detail
-
parsedDoc
public ParsedDocument parsedDoc()
-
type
public java.lang.String type()
- Specified by:
typein classEngine.Operation
-
id
public java.lang.String id()
-
operationType
public Engine.Operation.TYPE operationType()
- Specified by:
operationTypein classEngine.Operation
-
routing
public java.lang.String routing()
-
parent
public java.lang.String parent()
-
docs
public java.util.List<ParseContext.Document> docs()
-
source
public BytesReference 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
-
-