Package org.elasticsearch.index.engine
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 -
Constructor Summary
ConstructorsConstructorDescriptionTranslogHandler(org.elasticsearch.common.xcontent.NamedXContentRegistry xContentRegistry, org.elasticsearch.index.IndexSettings indexSettings)
-
Method Summary
Modifier and TypeMethodDescriptionorg.elasticsearch.index.engine.Engine.Operation
convertToEngineOp(org.elasticsearch.index.translog.Translog.Operation operation, org.elasticsearch.index.engine.Engine.Operation.Origin origin)
Returns the recovered types modifying the mapping during the recoveryint
run(org.elasticsearch.index.engine.Engine engine, org.elasticsearch.index.translog.Translog.Snapshot snapshot)
-
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
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 interfaceorg.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)
-