org.knime.base.data.aggregation.general
Class SortedListCellOperator

java.lang.Object
  extended by org.knime.base.data.aggregation.AggregationOperator
      extended by org.knime.base.data.aggregation.general.ListCellOperator
          extended by org.knime.base.data.aggregation.general.SortedListCellOperator
All Implemented Interfaces:
Comparable<AggregationMethod>, AggregationMethod
Direct Known Subclasses:
MedianOperator

public class SortedListCellOperator
extends ListCellOperator

Returns all values as a sorted ListCell per group.

Author:
Tobias Koetter, University of Konstanz

Constructor Summary
  SortedListCellOperator(GlobalSettings globalSettings, OperatorColumnSettings opColSettings)
          Constructor for class SortedListCellOperator.
protected SortedListCellOperator(OperatorData operatorData, GlobalSettings globalSettings, OperatorColumnSettings opColSettings)
          Constructor for class SortedListCellOperator.
 
Method Summary
 AggregationOperator createInstance(GlobalSettings globalSettings, OperatorColumnSettings opColSettings)
          Creates a new instance of this operator.
 String getDescription()
          
protected  DataCell getResultInternal()
          
protected  void sortCells(List<DataCell> cells)
           
 
Methods inherited from class org.knime.base.data.aggregation.general.ListCellOperator
computeInternal, getCells, getDataType, resetInternal
 
Methods inherited from class org.knime.base.data.aggregation.AggregationOperator
compareTo, compute, createColumnSpec, createOperator, getColumnLabel, getGlobalSettings, getId, getLabel, getMaxUniqueValues, getOperatorData, getResult, getSkipMessage, getSupportedType, getSupportedTypeLabel, getValueDelimiter, inclMissingCells, isCompatible, isCompatible, isSkipped, isUsesLimit, keepColumnSpec, reset, setSkipMessage, setSkipped, supportsMissingValueOption, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SortedListCellOperator

public SortedListCellOperator(GlobalSettings globalSettings,
                              OperatorColumnSettings opColSettings)
Constructor for class SortedListCellOperator.

Parameters:
globalSettings - the global settings
opColSettings - the operator column specific settings

SortedListCellOperator

protected SortedListCellOperator(OperatorData operatorData,
                                 GlobalSettings globalSettings,
                                 OperatorColumnSettings opColSettings)
Constructor for class SortedListCellOperator.

Parameters:
operatorData - the operator data
globalSettings - the global settings
opColSettings - the operator column specific settings
Method Detail

createInstance

public AggregationOperator createInstance(GlobalSettings globalSettings,
                                          OperatorColumnSettings opColSettings)
Creates a new instance of this operator. A new instance is created for each column.

Overrides:
createInstance in class ListCellOperator
Parameters:
globalSettings - the global settings
opColSettings - the operator column specific settings
Returns:
a new instance of this operator

getResultInternal

protected DataCell getResultInternal()

Overrides:
getResultInternal in class ListCellOperator
Returns:
the result DataCell

sortCells

protected void sortCells(List<DataCell> cells)
Parameters:
cells - the cells sorted using the DataValueComparator for the original DataType of the column to group

getDescription

public String getDescription()

Specified by:
getDescription in interface AggregationMethod
Overrides:
getDescription in class ListCellOperator
Returns:
a description that explains the used aggregation method to the user


Copyright, 2003 - 2012. 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.