Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.pivot.table.aggregator
Class NumericalAggregator

java.lang.Object
  extended by com.citra.pivot.table.aggregator.NumericalAggregator
All Implemented Interfaces:
TableAggregator
Direct Known Subclasses:
AvgAggregator, CountAggregator, HAvgAggregator, HWeightedAvgAggregator, HWeightedFirstValueAggregator, HWeightedLastValueAggregator, IndexAggregator, MaxAggregator, MinAggregator, MovingTotalAggregator, RankAggregator, ScaledSumAggregator, SumAggregator, WeightedAvgAggregator, WeightedFirstValueAggregator, WeightedLastValueAggregator, WeightedSumAggregator

public abstract class NumericalAggregator
extends Object
implements TableAggregator

NumericalAggregator is the base of all aggregators that return a number as an aggregate value.


Field Summary
protected  OlapType aggregationType
          the number's data type
 
Constructor Summary
NumericalAggregator()
          Constructs a NumericalAggregator.
NumericalAggregator(OlapType aggregationType)
          Constructs a NumericalAggregator.
 
Method Summary
 OlapType getType()
          Returns the number's data type.
protected  OlapType getType(TableMeasure measure)
          Determines the data type to use when aggregating.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.citra.pivot.table.TableAggregator
getName
 

Field Detail

aggregationType

protected OlapType aggregationType
the number's data type

Constructor Detail

NumericalAggregator

public NumericalAggregator()
Constructs a NumericalAggregator.


NumericalAggregator

public NumericalAggregator(OlapType aggregationType)
Constructs a NumericalAggregator.

Method Detail

getType

public OlapType getType()
Returns the number's data type.

Returns:
the number's data type

getType

protected OlapType getType(TableMeasure measure)
Determines the data type to use when aggregating. If aggregationType is null, then the measure's data type will be used instead.

Parameters:
measure - the measure being aggregated
Returns:
the data type to use when aggregating

Copyright © 2011 Citra Technologies. All Rights Reserved.