org.knime.base.node.preproc.groupby
Class MemoryGroupByTable

java.lang.Object
  extended by org.knime.base.node.preproc.groupby.GroupByTable
      extended by org.knime.base.node.preproc.groupby.MemoryGroupByTable

public class MemoryGroupByTable
extends GroupByTable

Author:
Tobias Koetter, University of Konstanz

Constructor Summary
protected MemoryGroupByTable(ExecutionContext exec, BufferedDataTable inDataTable, List<String> groupByCols, ColumnAggregator[] colAggregators, GlobalSettings globalSettings, boolean sortInMemory, boolean enableHilite, ColumnNamePolicy colNamePolicy, boolean retainOrder)
          Constructor for class MemoryGroupByTable.
 
Method Summary
protected  BufferedDataTable createGroupByTable(ExecutionContext exec, BufferedDataTable dataTable, DataTableSpec resultSpec, int[] groupColIdx)
          
 
Methods inherited from class org.knime.base.node.preproc.groupby.GroupByTable
addHiliteMapping, addSkippedGroup, appendOrderColumn, checkGroupCols, createGroupByTableSpec, createSkippedGroupName, getBufferedTable, getColAggregators, getGlobalSettings, getGroupCols, getHiliteMapping, getSkippedGroupsByColName, getSkippedGroupsMessage, isEnableHilite, isRetainOrder, isSortInMemory, sortTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryGroupByTable

protected MemoryGroupByTable(ExecutionContext exec,
                             BufferedDataTable inDataTable,
                             List<String> groupByCols,
                             ColumnAggregator[] colAggregators,
                             GlobalSettings globalSettings,
                             boolean sortInMemory,
                             boolean enableHilite,
                             ColumnNamePolicy colNamePolicy,
                             boolean retainOrder)
                      throws CanceledExecutionException
Constructor for class MemoryGroupByTable.

Parameters:
exec - the ExecutionContext
inDataTable - the table to aggregate
groupByCols - the name of all columns to group by
colAggregators - the aggregation columns with the aggregation method to use in the order the columns should be appear in the result table numerical columns
globalSettings - the global settings
sortInMemory - true if the table should be sorted in the memory
enableHilite - true if a row key map should be maintained to enable hiliting
colNamePolicy - the ColumnNamePolicy for the aggregation columns input table if set to true
retainOrder - true if the original row order should be retained
Throws:
CanceledExecutionException - if the user has canceled the execution
Method Detail

createGroupByTable

protected BufferedDataTable createGroupByTable(ExecutionContext exec,
                                               BufferedDataTable dataTable,
                                               DataTableSpec resultSpec,
                                               int[] groupColIdx)
                                        throws CanceledExecutionException

Specified by:
createGroupByTable in class GroupByTable
Parameters:
exec - the ExecutionContext
dataTable - the data table to aggregate
resultSpec - the result DataTableSpec
groupColIdx - the group column indices
Returns:
the aggregated input table
Throws:
CanceledExecutionException - if the operation has been canceled


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.