Class TranslogOperationsUtils

java.lang.Object
org.elasticsearch.index.translog.TranslogOperationsUtils

public class TranslogOperationsUtils extends Object
  • Method Details

    • indexOp

      public static Translog.Index indexOp(String id, long seqNo, long primaryTerm)
      Returns:
      a new Translog.Index instance with the given id, sequence number, primary term and a random source.
    • indexOp

      public static Translog.Index indexOp(String id, long seqNo, long primaryTerm, String source)
      Returns:
      a new Translog.Index instance with the given id, sequence number, primary term and source.