Package org.elasticsearch.index.engine
Class TranslogHandler
java.lang.Object
org.elasticsearch.index.engine.TranslogHandler
- All Implemented Interfaces:
Engine.TranslogRecoveryRunner
public class TranslogHandler extends java.lang.Object implements Engine.TranslogRecoveryRunner
-
Field Summary
Fields Modifier and Type Field Description Mapping
mappingUpdate
-
Constructor Summary
Constructors Constructor Description TranslogHandler(NamedXContentRegistry xContentRegistry, IndexSettings indexSettings)
-
Method Summary
Modifier and Type Method Description Engine.Operation
convertToEngineOp(Translog.Operation operation, Engine.Operation.Origin origin)
java.util.Map<java.lang.String,Mapping>
getRecoveredTypes()
Returns the recovered types modifying the mapping during the recoveryint
run(Engine engine, Translog.Snapshot snapshot)
-
Field Details
-
Constructor Details
-
Method Details
-
getRecoveredTypes
Returns the recovered types modifying the mapping during the recovery -
run
- Specified by:
run
in interfaceEngine.TranslogRecoveryRunner
- Throws:
java.io.IOException
-
convertToEngineOp
public Engine.Operation convertToEngineOp(Translog.Operation operation, Engine.Operation.Origin origin)
-