Class TranslogHandler

java.lang.Object
org.elasticsearch.index.engine.TranslogHandler
All Implemented Interfaces:
org.elasticsearch.index.engine.Engine.TranslogRecoveryRunner

public class TranslogHandler extends Object implements org.elasticsearch.index.engine.Engine.TranslogRecoveryRunner
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    org.elasticsearch.index.mapper.Mapping
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    TranslogHandler​(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.index.IndexSettings indexSettings)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.elasticsearch.index.engine.Engine.Operation
    convertToEngineOp​(org.elasticsearch.index.translog.Translog.Operation operation, org.elasticsearch.index.engine.Engine.Operation.Origin origin)
     
    Map<String,​org.elasticsearch.index.mapper.Mapping>
    Returns the recovered types modifying the mapping during the recovery
    int
    run​(org.elasticsearch.index.engine.Engine engine, org.elasticsearch.index.translog.Translog.Snapshot snapshot)
     

    Methods inherited from class java.lang.Object

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

    • mappingUpdate

      public org.elasticsearch.index.mapper.Mapping mappingUpdate
  • Constructor Details

    • TranslogHandler

      public TranslogHandler(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.index.IndexSettings indexSettings)
  • Method Details

    • getRecoveredTypes

      public Map<String,​org.elasticsearch.index.mapper.Mapping> getRecoveredTypes()
      Returns the recovered types modifying the mapping during the recovery
    • run

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

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