Class Translog.Index

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

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

  • Constructor Details

    • Index

      public Index​(Engine.Index index, Engine.IndexResult indexResult)
    • Index

      public Index​(java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, byte[] source)
    • Index

      public Index​(java.lang.String type, java.lang.String id, long seqNo, long primaryTerm, long version, byte[] source, java.lang.String routing, long autoGeneratedIdTimestamp)
  • 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()
    • routing

      public java.lang.String routing()
    • source

      public BytesReference source()
    • 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
    • getAutoGeneratedIdTimestamp

      public long getAutoGeneratedIdTimestamp()