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
  • 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

      public Index(org.apache.lucene.index.Term uid, long primaryTerm, ParsedDocument doc)
  • Method Details

    • parsedDoc

      public ParsedDocument parsedDoc()
    • type

      public String type()
      Specified by:
      type in class Engine.Operation
    • id

      public String id()
    • operationType

      public Engine.Operation.TYPE operationType()
      Specified by:
      operationType in class Engine.Operation
    • routing

      public String routing()
    • docs

      public List<LuceneDocument> docs()
    • source

      public BytesReference source()
    • estimatedSizeInBytes

      public int estimatedSizeInBytes()
      Specified by:
      estimatedSizeInBytes in class Engine.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()
      Returns 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
    • getIfSeqNo

      public long getIfSeqNo()
    • getIfPrimaryTerm

      public long getIfPrimaryTerm()