use of org.talend.dataquality.rules.DefaultSurvivorshipDefinition in project tdq-studio-se by Talend.
the class DefaultSurvivorShipTableViewer method createNewKeyDefinition.
@Override
protected DefaultSurvivorshipDefinition createNewKeyDefinition(String columnName) {
DefaultSurvivorshipDefinition skd = RulesFactory.eINSTANCE.createDefaultSurvivorshipDefinition();
skd.setDataType(DefaultSurvivorShipDataTypeEnum.getTypeByIndex(0).getValue());
AlgorithmDefinition createAlgorithmDefinition = RulesFactory.eINSTANCE.createAlgorithmDefinition();
createAlgorithmDefinition.setAlgorithmType(SurvivorShipAlgorithmEnum.getTypeByIndex(3).getComponentValueName());
skd.setFunction(createAlgorithmDefinition);
return skd;
}
Aggregations