|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.preproc.groupby.aggregation.AggregationOperator
public abstract class AggregationOperator
Abstract class which has to be extended by all aggregation method operators
in the AggregationMethod
enumeration to be used in
the GroupByTable
class.
Field Summary | |
---|---|
static String |
CONCATENATOR
The String to use by concatenation operators. |
Constructor Summary | |
---|---|
AggregationOperator(String label,
boolean numerical,
boolean usesLimit,
boolean keepColSpec,
int maxUniqueValues)
Constructor for class AggregationOperator. |
|
AggregationOperator(String label,
String shortLabel,
boolean numerical,
boolean usesLimit,
boolean keepColSpec,
int maxUniqueValues)
Constructor for class AggregationOperator. |
Method Summary | |
---|---|
void |
compute(DataCell cell)
|
protected abstract boolean |
computeInternal(DataCell cell)
|
DataColumnSpec |
createColumnSpec(String colName,
DataColumnSpec origSpec)
|
abstract AggregationOperator |
createInstance(DataColumnSpec origColSpec,
int maxUniqueValues)
Creates a new instance of this operator. |
protected abstract DataType |
getDataType(DataType origType)
|
String |
getLabel()
|
int |
getMaxUniqueValues()
|
DataCell |
getResult()
|
protected abstract DataCell |
getResultInternal()
|
String |
getShortLabel()
|
boolean |
isNumerical()
|
boolean |
isSkipped()
|
boolean |
isUsesLimit()
|
void |
reset()
Should reset the operator to the start values. |
protected abstract void |
resetInternal()
Should reset the operator to the start values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONCATENATOR
Constructor Detail |
---|
public AggregationOperator(String label, boolean numerical, boolean usesLimit, boolean keepColSpec, int maxUniqueValues)
label
- user readable label which is also used for the column namenumerical
- true
if the operator is only suitable
for numerical columnsusesLimit
- true
if the method checks the number of
unique values limit.keepColSpec
- true
if the original column specification
should be kept if possiblemaxUniqueValues
- the maximum number of unique valuespublic AggregationOperator(String label, String shortLabel, boolean numerical, boolean usesLimit, boolean keepColSpec, int maxUniqueValues)
label
- user readable labelshortLabel
- the short label used for the column namenumerical
- true
if the operator is only suitable
for numerical columnsusesLimit
- true
if the method checks the number of
unique values limit.keepColSpec
- true
if the original column specification
should be kept if possiblemaxUniqueValues
- the maximum number of unique valuesMethod Detail |
---|
public abstract AggregationOperator createInstance(DataColumnSpec origColSpec, int maxUniqueValues)
origColSpec
- the DataColumnSpec
of the original columnmaxUniqueValues
- the maximum number of unique values
public int getMaxUniqueValues()
public boolean isSkipped()
true
if this operator was skippedpublic void compute(DataCell cell)
cell
- the DataCell
to consider during computingprotected abstract boolean computeInternal(DataCell cell)
cell
- the DataCell
to consider during computing the cell
can't be null
.
true
if this column should be skipped in further
calculationspublic DataColumnSpec createColumnSpec(String colName, DataColumnSpec origSpec)
colName
- the name of the new columnorigSpec
- the original DataColumnSpec
DataColumnSpecCreator
for the aggregated columnprotected abstract DataType getDataType(DataType origType)
origType
- the DataType
of the original column to aggregate
DataType
of the aggregation resultpublic DataCell getResult()
DataCell
protected abstract DataCell getResultInternal()
DataCell
public void reset()
protected abstract void resetInternal()
public String getLabel()
public String getShortLabel()
public boolean isNumerical()
public boolean isUsesLimit()
true
if this method checks the maximum unique
values limit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |