forked from D-Net/dnet-hadoop
Revert "REmove duplicated code and ensure that load and initialization is done through "DedupConfig.load" method"
This reverts commit 485f9d18cb
.
This commit is contained in:
parent
485f9d18cb
commit
758e662ab8
|
@ -88,7 +88,9 @@ abstract class AbstractSparkAction implements Serializable {
|
||||||
"for $x in /RESOURCE_PROFILE[.//RESOURCE_IDENTIFIER/@value = '%s'] return $x//DEDUPLICATION/text()",
|
"for $x in /RESOURCE_PROFILE[.//RESOURCE_IDENTIFIER/@value = '%s'] return $x//DEDUPLICATION/text()",
|
||||||
configProfileId));
|
configProfileId));
|
||||||
|
|
||||||
DedupConfig dedupConfig = DedupConfig.load(conf);
|
DedupConfig dedupConfig = new ObjectMapper().readValue(conf, DedupConfig.class);
|
||||||
|
dedupConfig.getPace().initModel();
|
||||||
|
dedupConfig.getPace().initTranslationMap();
|
||||||
dedupConfig.getWf().setConfigurationId(actionSetId);
|
dedupConfig.getWf().setConfigurationId(actionSetId);
|
||||||
|
|
||||||
return dedupConfig;
|
return dedupConfig;
|
||||||
|
|
Loading…
Reference in New Issue