// ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have received a copy of the agreement
// along with this program; if not, write to Talend SA
// 9 rue Pages 92150 Suresnes, France
//
// ============================================================================
package org.talend.survivorship.sample;
import org.talend.survivorship.model.ConflictRuleDefinition;
import org.talend.survivorship.model.RuleDefinition;
import org.talend.survivorship.model.RuleDefinition.Function;
import org.talend.survivorship.model.RuleDefinition.Order;
public class SampleDataConflictOtherColumn2MostCommon2ConstantEmptyDuplicate {
public static final String PKG_NAME = "org.talend.survivorship.conflict.fre_other_fill_dup_sur"; //$NON-NLS-1$
public static final RuleDefinition[] RULES_CONFLICT = {
new RuleDefinition(Order.SEQ, "most_common_firstName", "firstName", //$NON-NLS-1$ //$NON-NLS-2$
Function.MostCommon, null, "firstName", false), //$NON-NLS-1$
new RuleDefinition(Order.SEQ, "most_common_lastName", "lastName", //$NON-NLS-1$ //$NON-NLS-2$
Function.MostCommon, null, "lastName", false) }; //$NON-NLS-1$
public static final ConflictRuleDefinition[] RULES_CONFLICT_RESOLVE = {
new ConflictRuleDefinition(Order.SEQ, "shortest_city2", "city2", //$NON-NLS-1$ //$NON-NLS-2$
Function.Shortest, null, "firstName", false, null, false),
new ConflictRuleDefinition(Order.SEQ, "exclusiveness_lastName", "lastName", //$NON-NLS-1$ //$NON-NLS-2$
Function.Exclusiveness, "Green,Blue", "lastName", false, "firstName", true) }; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}