org.knime.base.node.preproc.groupby.aggregation
Class Operators.FirstValueOperator

java.lang.Object
  extended by org.knime.base.node.preproc.groupby.aggregation.AggregationOperator
      extended by org.knime.base.node.preproc.groupby.aggregation.Operators.FirstOperator
          extended by org.knime.base.node.preproc.groupby.aggregation.Operators.FirstValueOperator
Enclosing class:
Operators

final class Operators.FirstValueOperator
extends Operators.FirstOperator

Returns the first value (ignores missing values) per group.

Author:
Tobias Koetter, University of Konstanz

Field Summary
 
Fields inherited from class org.knime.base.node.preproc.groupby.aggregation.AggregationOperator
CONCATENATOR
 
Constructor Summary
Operators.FirstValueOperator(int maxUniqueValues)
          Constructor for class FirstValueOperator.
 
Method Summary
protected  boolean computeInternal(DataCell cell)
          
 AggregationOperator createInstance(DataColumnSpec origColSpec, int maxUniqueValues)
          Creates a new instance of this operator.
 
Methods inherited from class org.knime.base.node.preproc.groupby.aggregation.Operators.FirstOperator
getDataType, getResultInternal, resetInternal
 
Methods inherited from class org.knime.base.node.preproc.groupby.aggregation.AggregationOperator
compute, createColumnSpec, getLabel, getMaxUniqueValues, getResult, getShortLabel, isNumerical, isSkipped, isUsesLimit, reset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Operators.FirstValueOperator

Operators.FirstValueOperator(int maxUniqueValues)
Constructor for class FirstValueOperator.

Parameters:
maxUniqueValues - the maximum number of unique values
Method Detail

createInstance

public AggregationOperator createInstance(DataColumnSpec origColSpec,
                                          int maxUniqueValues)
Creates a new instance of this operator.

Overrides:
createInstance in class Operators.FirstOperator
Parameters:
origColSpec - the DataColumnSpec of the original column
maxUniqueValues - the maximum number of unique values
Returns:
a new instance of this operator

computeInternal

protected boolean computeInternal(DataCell cell)

Overrides:
computeInternal in class Operators.FirstOperator
Parameters:
cell - the DataCell to consider during computing the cell can't be null.
Returns:
true if this column should be skipped in further calculations


Copyright, 2003 - 2010. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.