|
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.RankAggregator
public class RankAggregator
RankAggregator is used to create ranking for a given measure in the context of a dimension.
Field Summary | |
---|---|
protected boolean |
ascending
whether to rank in ascending or descending order |
protected TableDimension |
dimension
the dimension context |
static int |
RANK_LEVEL
constant defining that the ranking should involve all level members of the dimension |
static int |
RANK_PARENT
constant defining that the ranking should involve all sibling members of the dimension |
static int |
RANK_TOTAL
constant defining that the ranking should involve all members of the dimension |
protected int |
rankMode
the ranking mode |
Fields inherited from class com.citra.pivot.table.aggregator.NumericalAggregator |
---|
aggregationType |
Constructor Summary | |
---|---|
RankAggregator(TableDimension dimension)
Constructs a RankAggregator. |
|
RankAggregator(TableDimension dimension,
boolean ascending)
Constructs a RankAggregator. |
|
RankAggregator(TableDimension dimension,
boolean ascending,
int rankMode)
Constructs a RankAggregator. |
|
RankAggregator(TableDimension dimension,
boolean ascending,
int rankMode,
OlapType type)
Constructs a RankAggregator. |
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. |
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 boolean ascending
protected int rankMode
public static final int RANK_TOTAL
public static final int RANK_PARENT
public static final int RANK_LEVEL
Constructor Detail |
---|
public RankAggregator(TableDimension dimension)
public RankAggregator(TableDimension dimension, boolean ascending)
public RankAggregator(TableDimension dimension, boolean ascending, int rankMode)
public RankAggregator(TableDimension dimension, boolean ascending, int rankMode, 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
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |