|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.data.aggregation.ColumnAggregator
public class ColumnAggregator
Class that defines the AggregationMethod for a column.
| Constructor Summary | |
|---|---|
ColumnAggregator(DataColumnSpec origColSpec,
AggregationMethod method,
boolean inclMissingCells)
Constructor for class ColumnAggregator. |
|
| Method Summary | |
|---|---|
ColumnAggregator |
clone()
|
AggregationMethod |
getMethodTemplate()
|
AggregationOperator |
getOperator(GlobalSettings globalSettings)
Creates only ones an AggregationOperator that is always
returned by this method. |
String |
getOperatorColName()
|
String |
getOriginalColName()
|
DataColumnSpec |
getOriginalColSpec()
|
DataType |
getOriginalDataType()
|
boolean |
inclMissingCells()
|
boolean |
isCompatible(Class<? extends DataValue> type)
|
static List<ColumnAggregator> |
loadColumnAggregators(NodeSettingsRO settings)
Creates a List with all ColumnAggregators that were
stored in the settings. |
void |
reset()
Removes any cached operators. |
static void |
saveColumnAggregators(NodeSettingsWO settings,
List<ColumnAggregator> cols)
|
void |
setinclMissingCells(boolean inclMissingCells)
|
boolean |
supportsMissingValueOption()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ColumnAggregator(DataColumnSpec origColSpec,
AggregationMethod method,
boolean inclMissingCells)
origColSpec - the DataColumnSpec of the original columnmethod - the AggregationMethod to use for the given columninclMissingCells - true if missing cells should be
considered during aggregation| Method Detail |
|---|
public ColumnAggregator clone()
clone in class Objectpublic String getOriginalColName()
public DataColumnSpec getOriginalColSpec()
DataColumnSpec of the original columnpublic DataType getOriginalDataType()
DataType of the original columnpublic boolean isCompatible(Class<? extends DataValue> type)
type - the type to check for
true if the column is compatible to the given typepublic AggregationMethod getMethodTemplate()
AggregationMethods to usepublic boolean supportsMissingValueOption()
true if the operator supports the alteration of
the missing value optionpublic boolean inclMissingCells()
true if missing cells should be
considered during aggregationpublic void setinclMissingCells(boolean inclMissingCells)
inclMissingCells - true if missing cells should be
considered during aggregationpublic AggregationOperator getOperator(GlobalSettings globalSettings)
AggregationOperator that is always
returned by this method.
In order to remove the created AggregationOperator call the
reset() method.
globalSettings - the maximum number of unique values
public void reset()
public String getOperatorColName()
public String toString()
toString in class Object
public static List<ColumnAggregator> loadColumnAggregators(NodeSettingsRO settings)
throws InvalidSettingsException
List with all ColumnAggregators that were
stored in the settings.
settings - the settings object to read from
List with the ColumnAggregators
InvalidSettingsException - if the settings are invalid
public static void saveColumnAggregators(NodeSettingsWO settings,
List<ColumnAggregator> cols)
settings - the settings object to write tocols - the ColumnAggregator objects to save
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||