Search in sources :

Example 1 with OrElementCountOperator

use of org.knime.base.data.aggregation.collection.OrElementCountOperator in project knime-core by knime.

the class AggregationMethods method registerDeprecatedOperators.

/**
 * This method registers previous methods which are deprecated in order to
 * be backward compatible. The methods are stored separate from the
 * methods to use.
 *
 * @throws DuplicateOperatorException if one of the methods already exists
 */
@SuppressWarnings("deprecation")
private void registerDeprecatedOperators() throws DuplicateOperatorException {
    addDeprecatedOperator(new OrElementCountOperator(new OperatorData("Unique element count", true, false, CollectionDataValue.class, false), GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_INCL_MISSING));
    addDeprecatedOperator(new FirstOperator(new OperatorData("First value", false, true, DataValue.class, false), GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
    addDeprecatedOperator(new LastOperator(new OperatorData("Last value", false, true, DataValue.class, false), GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
    addDeprecatedOperator(new CountOperator(new OperatorData("Value count", false, true, DataValue.class, false), GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
    // methods changed in KNIME version 2.4
    /**
     * Concatenates all cell values.
     */
    addDeprecatedOperator(new org.knime.base.data.aggregation.deprecated.ConcatenateOperator(GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_INCL_MISSING));
    /**
     * Concatenates all distinct cell values.
     */
    addDeprecatedOperator(new org.knime.base.data.aggregation.deprecated.UniqueConcatenateOperator(GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
    /**
     * Concatenates all distinct cell values and counts the members.
     */
    addDeprecatedOperator(new org.knime.base.data.aggregation.deprecated.UniqueConcatenateWithCountOperator(GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
    // methods changed in KNIME version 2.5.2
    addDeprecatedOperator(new org.knime.base.data.aggregation.deprecated.SumOperator(GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
    // methods changed in KNIME version 2.12.0
    addDeprecatedOperator(new org.knime.base.data.aggregation.deprecated.AndElementOperator(GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
    addDeprecatedOperator(new org.knime.base.data.aggregation.deprecated.AndElementCountOperator(GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
    // methods changed in KNIME version 3.4
    addDeprecatedOperator(new org.knime.base.data.aggregation.deprecated.MedianOperator(GlobalSettings.DEFAULT, OperatorColumnSettings.DEFAULT_EXCL_MISSING));
}
Also used : LastOperator(org.knime.base.data.aggregation.general.LastOperator) FirstOperator(org.knime.base.data.aggregation.general.FirstOperator) OrElementCountOperator(org.knime.base.data.aggregation.collection.OrElementCountOperator) MissingValueCountOperator(org.knime.base.data.aggregation.general.MissingValueCountOperator) TrueCountOperator(org.knime.base.data.aggregation.booleancell.TrueCountOperator) BitVectorSetCountOperator(org.knime.base.data.aggregation.bitvector.BitVectorSetCountOperator) ElementCountOperator(org.knime.base.data.aggregation.collection.ElementCountOperator) AndElementCountOperator(org.knime.base.data.aggregation.collection.AndElementCountOperator) XORElementCountOperator(org.knime.base.data.aggregation.collection.XORElementCountOperator) FalseCountOperator(org.knime.base.data.aggregation.booleancell.FalseCountOperator) UniqueConcatenateWithCountOperator(org.knime.base.data.aggregation.general.UniqueConcatenateWithCountOperator) CountOperator(org.knime.base.data.aggregation.general.CountOperator) BitVectorNotSetCountOperator(org.knime.base.data.aggregation.bitvector.BitVectorNotSetCountOperator) OrElementCountOperator(org.knime.base.data.aggregation.collection.OrElementCountOperator) UniqueCountOperator(org.knime.base.data.aggregation.general.UniqueCountOperator)

Aggregations

BitVectorNotSetCountOperator (org.knime.base.data.aggregation.bitvector.BitVectorNotSetCountOperator)1 BitVectorSetCountOperator (org.knime.base.data.aggregation.bitvector.BitVectorSetCountOperator)1 FalseCountOperator (org.knime.base.data.aggregation.booleancell.FalseCountOperator)1 TrueCountOperator (org.knime.base.data.aggregation.booleancell.TrueCountOperator)1 AndElementCountOperator (org.knime.base.data.aggregation.collection.AndElementCountOperator)1 ElementCountOperator (org.knime.base.data.aggregation.collection.ElementCountOperator)1 OrElementCountOperator (org.knime.base.data.aggregation.collection.OrElementCountOperator)1 XORElementCountOperator (org.knime.base.data.aggregation.collection.XORElementCountOperator)1 CountOperator (org.knime.base.data.aggregation.general.CountOperator)1 FirstOperator (org.knime.base.data.aggregation.general.FirstOperator)1 LastOperator (org.knime.base.data.aggregation.general.LastOperator)1 MissingValueCountOperator (org.knime.base.data.aggregation.general.MissingValueCountOperator)1 UniqueConcatenateWithCountOperator (org.knime.base.data.aggregation.general.UniqueConcatenateWithCountOperator)1 UniqueCountOperator (org.knime.base.data.aggregation.general.UniqueCountOperator)1