Class TranslogHandler

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

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

    Fields
    Modifier and Type Field Description
    org.elasticsearch.index.mapper.Mapping mappingUpdate  
  • 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)  
    java.util.Map<java.lang.String,​org.elasticsearch.index.mapper.Mapping> getRecoveredTypes()
    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 java.util.Map<java.lang.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 java.io.IOException
      Specified by:
      run in interface org.elasticsearch.index.engine.Engine.TranslogRecoveryRunner
      Throws:
      java.io.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)