org.knime.base.node.preproc.groupby
Class MemoryGroupByTable
java.lang.Object
org.knime.base.node.preproc.groupby.GroupByTable
org.knime.base.node.preproc.groupby.MemoryGroupByTable
public class MemoryGroupByTable
- extends GroupByTable
- Author:
- Tobias Koetter, University of Konstanz
| 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 |
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 ExecutionContextinDataTable - the table to aggregategroupByCols - the name of all columns to group bycolAggregators - the aggregation columns with the aggregation method
to use in the order the columns should be appear in the result table
numerical columnsglobalSettings - the global settingssortInMemory - true if the table should be sorted in
the memoryenableHilite - true if a row key map should be
maintained to enable hilitingcolNamePolicy - the ColumnNamePolicy for the
aggregation columns
input table if set to trueretainOrder - true if the original row order should be
retained
- Throws:
CanceledExecutionException - if the user has canceled the execution
createGroupByTable
protected BufferedDataTable createGroupByTable(ExecutionContext exec,
BufferedDataTable dataTable,
DataTableSpec resultSpec,
int[] groupColIdx)
throws CanceledExecutionException
-
- Specified by:
createGroupByTable in class GroupByTable
- Parameters:
exec - the ExecutionContextdataTable - the data table to aggregateresultSpec - the result DataTableSpecgroupColIdx - 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.