|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.base.node.preproc.pivot.PivotAggregationMethod
abstract class PivotAggregationMethod
Factory holding a set of aggregation functions, such as COUNT, SUM,
MEAN, MAX, MIN, VARIANCE, and STD DEVIATION methods. The computation of these
values is done by an array reference (init()
which in modify by next
value (compute(Double[], DataCell)
of one group, and is finally
committed (done(Double[])
. Each element within the array reference
can be used as a place holder for one value, e.g. sum and number of elements.
Field Summary | |
---|---|
(package private) static PivotAggregationMethod |
COUNT
Method only counts the number of non-empty and non-missing occurrences. |
(package private) static PivotAggregationMethod |
MAX
Method returns the maximum value over all values. |
(package private) static PivotAggregationMethod |
MEAN
Method computes the mean over all values. |
(package private) static Map<String,PivotAggregationMethod> |
METHODS
Set of methods used to compute the aggregation value for one column. |
(package private) static PivotAggregationMethod |
MIN
Method returns the minimum over all values. |
(package private) static PivotAggregationMethod |
STDDEV
Method computes the variance over all values. |
(package private) static PivotAggregationMethod |
SUM
Method computes the sum over all values. |
(package private) static PivotAggregationMethod |
VARIANCE
Method computes the variance over all values. |
Constructor Summary | |
---|---|
PivotAggregationMethod()
|
Method Summary | |
---|---|
(package private) abstract void |
compute(Double[] agg,
DataCell value)
Uses the array returned by init() to compute the next value. |
(package private) abstract DataCell |
done(Double[] agg)
Finally commits the aggregation value and computes the final output. |
(package private) abstract Double[] |
init()
Inits the array used for aggregation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final PivotAggregationMethod COUNT
static final PivotAggregationMethod SUM
static final PivotAggregationMethod MEAN
static final PivotAggregationMethod MAX
static final PivotAggregationMethod MIN
static final PivotAggregationMethod VARIANCE
static final PivotAggregationMethod STDDEV
static final Map<String,PivotAggregationMethod> METHODS
Constructor Detail |
---|
PivotAggregationMethod()
Method Detail |
---|
abstract Double[] init()
abstract void compute(Double[] agg, DataCell value)
init()
to compute the next value.
agg
- the array to be modified by this callvalue
- the value to applyabstract DataCell done(Double[] agg)
agg
- the array used for value computation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |