Search in sources :

Example 11 with DefaultSurvivorshipDefinition

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;
}
Also used : DefaultSurvivorshipDefinition(org.talend.dataquality.rules.DefaultSurvivorshipDefinition) AlgorithmDefinition(org.talend.dataquality.rules.AlgorithmDefinition)

Aggregations

DefaultSurvivorshipDefinition (org.talend.dataquality.rules.DefaultSurvivorshipDefinition)11 ISelection (org.eclipse.jface.viewers.ISelection)3 StructuredSelection (org.eclipse.jface.viewers.StructuredSelection)3 HashMap (java.util.HashMap)2 MetadataColumn (org.talend.core.model.metadata.builder.connection.MetadataColumn)2 SurvivorshipFunction (org.talend.dataquality.record.linkage.grouping.swoosh.SurvivorShipAlgorithmParams.SurvivorshipFunction)2 AlgorithmDefinition (org.talend.dataquality.rules.AlgorithmDefinition)2 ParticularDefaultSurvivorshipDefinitions (org.talend.dataquality.rules.ParticularDefaultSurvivorshipDefinitions)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 Map (java.util.Map)1 EList (org.eclipse.emf.common.util.EList)1 TableItem (org.eclipse.swt.widgets.TableItem)1 Test (org.junit.Test)1 RecordMatchingIndicator (org.talend.dataquality.indicators.columnset.RecordMatchingIndicator)1 AnalysisMatchRecordGrouping (org.talend.dataquality.record.linkage.grouping.AnalysisMatchRecordGrouping)1 MatchGroupResultConsumer (org.talend.dataquality.record.linkage.grouping.MatchGroupResultConsumer)1 DQMFBRecordMatcher (org.talend.dataquality.record.linkage.grouping.swoosh.DQMFBRecordMatcher)1 SurvivorShipAlgorithmParams (org.talend.dataquality.record.linkage.grouping.swoosh.SurvivorShipAlgorithmParams)1 CombinedRecordMatcher (org.talend.dataquality.record.linkage.record.CombinedRecordMatcher)1