Class Engine.Index

    • 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,
                     long ifSeqNo,
                     long ifPrimaryTerm)
      • Index

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

      • id

        public java.lang.String id()
      • routing

        public java.lang.String routing()
      • 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()