|
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.Functions
public class Functions
Utility class that contains common functions singletons and function calls for aggregating data.
Nested Class Summary | |
---|---|
static class |
Functions.AverageFunction
The average function. |
static class |
Functions.CountFunction
The count function. |
static class |
Functions.FirstFunction
The first function. |
static interface |
Functions.Function
Function defines a method for evaluating an aggregate given a list of values. |
static class |
Functions.LastFunction
This is the last function. |
static class |
Functions.MaxFunction
The max function. |
static class |
Functions.MinFunction
The min function. |
static class |
Functions.ScaledSumFunction
The scaled sum function. |
static class |
Functions.SumFunction
The sum function. |
static class |
Functions.WeightedAverageFunction
The weighted average function. |
static class |
Functions.WeightedSumFunction
The weighted sum function. |
Method Summary | |
---|---|
static Number |
getAverage(List values,
OlapType type,
boolean countNulls)
Evaluates an average for a list of numbers. |
static Functions.AverageFunction |
getAverageFunction()
Returns the average function singleton. |
static Number |
getCount(List values,
OlapType type,
boolean countNulls)
Counts a list of numbers. |
static Functions.CountFunction |
getCountFunction()
Returns the count function singleton. |
static Object |
getFirst(List values,
boolean countNulls)
Selects the first value in a list. |
static Functions.FirstFunction |
getFirstFunction()
Returns the first function singleton. |
static Object |
getLast(List values,
boolean countNulls)
Selects the last value in a list. |
static Functions.LastFunction |
getLastFunction()
Returns the last function singleton. |
static Number |
getMax(List values,
OlapType type)
Evaluates the maximum number from a list of numbers. |
static Functions.MaxFunction |
getMaxFunction()
Returns the max function singleton. |
static Number |
getMin(List values,
OlapType type)
Evaluates the minimum number from a list of numbers. |
static Functions.MinFunction |
getMinFunction()
Returns the min function singleton. |
static Number |
getScaledSum(List values,
List weights,
OlapType type)
Evaluates the scaled sum from a list of numbers and their weights. |
static Number |
getSum(List values,
OlapType type)
Evaluates the sum of a list of numbers. |
static Functions.SumFunction |
getSumFunction()
Returns the sum function singleton. |
static Number |
getWeightedAverage(List values,
List weights,
OlapType type,
boolean countNulls)
Evaluates the weighted average from a list of numbers and their weights. |
static Number |
getWeightedSum(List values,
List weights,
OlapType type)
Evaluates the weighted sum for a list of numbers and their weights. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Number getAverage(List values, OlapType type, boolean countNulls)
values
- the list of numberstype
- the data type the evaluation will be based oncountNulls
- true if the average will include null values, false otherwise
public static Functions.AverageFunction getAverageFunction()
public static Number getCount(List values, OlapType type, boolean countNulls)
values
- the list of numberstype
- the data type the evaluation will be based oncountNulls
- true if the counting will include null values, false otherwise
public static Functions.CountFunction getCountFunction()
public static Object getFirst(List values, boolean countNulls)
values
- the list of numberscountNulls
- true if the counting will include null values, false otherwise
public static Functions.FirstFunction getFirstFunction()
public static Object getLast(List values, boolean countNulls)
values
- the list of numberscountNulls
- true if the counting will include null values, false otherwise
public static Functions.LastFunction getLastFunction()
public static Number getMax(List values, OlapType type)
values
- the list of numberstype
- the data type the evaluation will be based on
public static Functions.MaxFunction getMaxFunction()
public static Number getMin(List values, OlapType type)
values
- the list of numberstype
- the data type the evaluation will be based on
public static Functions.MinFunction getMinFunction()
public static Number getScaledSum(List values, List weights, OlapType type)
values
- the list of numbersweights
- the numbers' weightstype
- the data type the evaluation will be based on
public static Number getSum(List values, OlapType type)
values
- the list of numberstype
- the data type the evaluation will be based on
public static Functions.SumFunction getSumFunction()
public static Number getWeightedAverage(List values, List weights, OlapType type, boolean countNulls)
values
- the list of numbersweights
- the numbers' weightstype
- the data type the evaluation will be based oncountNulls
- true if the weighted average will include null values, false otherwise
public static Number getWeightedSum(List values, List weights, OlapType type)
values
- the list of numbersweights
- the numbers' weightstype
- the data type the evaluation will be based on
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |