|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.data.aggregation.AggregationOperator
org.knime.base.data.aggregation.general.ModeOperator
public class ModeOperator
Returns the most frequent entry per group.
| Constructor Summary | |
|---|---|
|
ModeOperator(GlobalSettings globalSettings,
OperatorColumnSettings opColSettings)
Constructor for class ModeOperator. |
protected |
ModeOperator(OperatorData operatorData,
GlobalSettings globalSettings,
OperatorColumnSettings opColSettings)
Constructor for class ModeOperator. |
| Method Summary | |
|---|---|
protected boolean |
computeInternal(DataCell cell)
|
AggregationOperator |
createInstance(GlobalSettings globalSettings,
OperatorColumnSettings opColSettings)
Creates a new instance of this operator. |
protected DataType |
getDataType(DataType origType)
|
String |
getDescription()
|
protected DataCell |
getResultInternal()
|
protected void |
resetInternal()
Should reset the operator to the start values. |
| 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 |
|---|
public ModeOperator(GlobalSettings globalSettings,
OperatorColumnSettings opColSettings)
globalSettings - the global settingsopColSettings - the operator column specific settings
protected ModeOperator(OperatorData operatorData,
GlobalSettings globalSettings,
OperatorColumnSettings opColSettings)
operatorData - the operator dataglobalSettings - the global settingsopColSettings - the operator column specific settings| Method Detail |
|---|
protected DataType getDataType(DataType origType)
getDataType in class AggregationOperatororigType - the DataType of the original column to aggregate
DataType of the aggregation result
public AggregationOperator createInstance(GlobalSettings globalSettings,
OperatorColumnSettings opColSettings)
createInstance in class AggregationOperatorglobalSettings - the global settingsopColSettings - the operator column specific settings
protected boolean computeInternal(DataCell cell)
computeInternal in class AggregationOperatorcell - the DataCell to consider during computing the cell
can't be null but can be a missing cell
DataCell.isMissing() if the option is
AggregationOperator.inclMissingCells() option is set to true.
true if this column should be skipped in further
calculationsprotected DataCell getResultInternal()
getResultInternal in class AggregationOperatorDataCellprotected void resetInternal()
resetInternal in class AggregationOperatorpublic String getDescription()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||