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

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

 class Operators.LastValueOperator
extends Operators.LastOperator

Returns the last 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.LastValueOperator(int maxUniqueValues)
          Constructor for class LastValueOperator.
 
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.LastOperator
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.LastValueOperator

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

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.LastOperator
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.LastOperator
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.