|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.citra.pivot.table.aggregator.NumericalAggregator
com.citra.pivot.table.aggregator.MovingTotalAggregator
public class MovingTotalAggregator
MovingTotalAggregator produces a moving total aggregation of a given measure in the context of a dimension.
Field Summary | |
---|---|
static int |
BEGINNING
constant designating the first child in the level |
protected TableDimension |
dimension
the dimension context |
static int |
END
constant designating the last child in the level |
protected int |
nextOffset
the offset to lead the current member |
protected int |
previousOffset
the offset to lag the current member |
Fields inherited from class com.citra.pivot.table.aggregator.NumericalAggregator |
---|
aggregationType |
Constructor Summary | |
---|---|
MovingTotalAggregator(TableDimension dimension)
Constructs a MovingTotalAggregator. |
|
MovingTotalAggregator(TableDimension dimension,
int previousOffset,
int nextOffset)
Constructs a MovingTotalAggregator. |
|
MovingTotalAggregator(TableDimension dimension,
int previousOffset,
int nextOffset,
OlapType type)
Constructs a MovingTotalAggregator. |
|
MovingTotalAggregator(TableDimension dimension,
OlapType type)
Constructs a MovingTotalAggregator. |
Method Summary | |
---|---|
Object |
aggregate(TableQuery query,
TableConnection connection,
TableMeasure measure,
TableMeasure inputMeasure)
Aggregates the derived measure of a table datasource and returns the result. |
String |
getName()
Retrieves the name of the aggregator. |
void |
setNextOffset(int nextOffset)
Assigns the offset to lead the current member. |
void |
setPreviousOffset(int previousOffset)
Assigns the offset to lag the current member. |
Methods inherited from class com.citra.pivot.table.aggregator.NumericalAggregator |
---|
getType, getType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected TableDimension dimension
protected int previousOffset
protected int nextOffset
public static final int BEGINNING
public static final int END
Constructor Detail |
---|
public MovingTotalAggregator(TableDimension dimension)
public MovingTotalAggregator(TableDimension dimension, int previousOffset, int nextOffset)
public MovingTotalAggregator(TableDimension dimension, int previousOffset, int nextOffset, OlapType type)
public MovingTotalAggregator(TableDimension dimension, OlapType type)
Method Detail |
---|
public Object aggregate(TableQuery query, TableConnection connection, TableMeasure measure, TableMeasure inputMeasure) throws DataSourceException
aggregate
in interface DerivedMeasureAggregator
query
- contains the parameters to table members that are being aggregatedconnection
- the connection to the table datasourcemeasure
- the measure being aggregated
DataSourceException
public String getName()
getName
in interface TableAggregator
public void setNextOffset(int nextOffset)
nextOffset
- the offset to lead the current memberpublic void setPreviousOffset(int previousOffset)
previousOffset
- the offset to lag the current member
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |