public class TranslogRecoveryPerformer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TranslogRecoveryPerformer.BatchOperationException |
Modifier | Constructor and Description |
---|---|
protected |
TranslogRecoveryPerformer(ShardId shardId,
MapperService mapperService,
IndexQueryParserService queryParserService,
IndexAliasesService indexAliasesService,
IndexCache indexCache,
ESLogger logger) |
Modifier and Type | Method and Description |
---|---|
protected DocumentMapperForType |
docMapper(String type) |
Map<String,Mapping> |
getRecoveredTypes()
Returns the recovered types modifying the mapping during the recovery
|
protected void |
operationProcessed()
Called once for every processed operation by this recovery performer.
|
void |
performRecoveryOperation(Engine engine,
Translog.Operation operation,
boolean allowMappingUpdates)
Performs a single recovery operation.
|
int |
recoveryFromSnapshot(Engine engine,
Translog.Snapshot snapshot) |
protected TranslogRecoveryPerformer(ShardId shardId, MapperService mapperService, IndexQueryParserService queryParserService, IndexAliasesService indexAliasesService, IndexCache indexCache, ESLogger logger)
protected DocumentMapperForType docMapper(String type)
public int recoveryFromSnapshot(Engine engine, Translog.Snapshot snapshot) throws IOException
IOException
public void performRecoveryOperation(Engine engine, Translog.Operation operation, boolean allowMappingUpdates)
allowMappingUpdates
- true if mapping update should be accepted (but collected). Setting it to false will
cause a MapperException
to be thrown if an update
is encountered.protected void operationProcessed()
Copyright © 2009–2016. All rights reserved.