Class TranslogHandler

java.lang.Object
org.opensearch.index.engine.TranslogHandler
All Implemented Interfaces:
org.opensearch.index.translog.TranslogRecoveryRunner

public class TranslogHandler extends Object implements org.opensearch.index.translog.TranslogRecoveryRunner
  • Constructor Summary

    Constructors
    Constructor
    Description
    TranslogHandler(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.index.IndexSettings indexSettings, org.opensearch.index.engine.Engine engine)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensearch.index.engine.Engine.Operation
    convertToEngineOp(org.opensearch.index.translog.Translog.Operation operation, org.opensearch.index.engine.Engine.Operation.Origin origin)
     
    int
    run(org.opensearch.index.translog.Translog.Snapshot snapshot)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TranslogHandler

      public TranslogHandler(org.opensearch.core.xcontent.NamedXContentRegistry xContentRegistry, org.opensearch.index.IndexSettings indexSettings, org.opensearch.index.engine.Engine engine)
  • Method Details

    • run

      public int run(org.opensearch.index.translog.Translog.Snapshot snapshot) throws IOException
      Specified by:
      run in interface org.opensearch.index.translog.TranslogRecoveryRunner
      Throws:
      IOException
    • convertToEngineOp

      public org.opensearch.index.engine.Engine.Operation convertToEngineOp(org.opensearch.index.translog.Translog.Operation operation, org.opensearch.index.engine.Engine.Operation.Origin origin)