Class Translog.Delete

java.lang.Object
org.elasticsearch.index.translog.Translog.Delete
All Implemented Interfaces:
Translog.Operation
Enclosing class:
Translog

public static class Translog.Delete
extends java.lang.Object
implements Translog.Operation
  • Field Details

  • Constructor Details

    • Delete

      public Delete​(Engine.Delete delete, Engine.DeleteResult deleteResult)
    • Delete

      public Delete​(java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, org.apache.lucene.index.Term uid)
      utility for testing
    • Delete

      public Delete​(java.lang.String type, java.lang.String id, org.apache.lucene.index.Term uid, long seqNo, long primaryTerm, long version)
  • Method Details

    • opType

      public Translog.Operation.Type opType()
      Specified by:
      opType in interface Translog.Operation
    • estimateSize

      public long estimateSize()
      Specified by:
      estimateSize in interface Translog.Operation
    • type

      public java.lang.String type()
    • id

      public java.lang.String id()
    • uid

      public org.apache.lucene.index.Term uid()
    • seqNo

      public long seqNo()
      Specified by:
      seqNo in interface Translog.Operation
    • primaryTerm

      public long primaryTerm()
      Specified by:
      primaryTerm in interface Translog.Operation
    • version

      public long version()
    • getSource

      public Translog.Source getSource()
      Specified by:
      getSource in interface Translog.Operation
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object