Class MigrationExecutor
java.lang.Object
io.apicurio.registry.contracts.rules.MigrationExecutor
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MigrationExecutor
-
-
Method Details
-
execute
public RuleExecutionResult execute(List<String> allVersions, String fromVersion, String toVersion, Map<String, Object> record, BiFunction<String, String, List<RuleDefinition>> rulesLoader) Executes multi-hop migration from fromVersion to toVersion.- Parameters:
allVersions- ordered list of all versions for the artifactfromVersion- the version of the record being migratedtoVersion- the target versionrecord- the record to transformrulesLoader- function that loads migration rules for a given (version, mode) pair- Returns:
- the result with the transformed record
-