public class PivotFunctions
extends Object
Modifier and Type | Method and Description |
---|---|
Number |
avg(Object value,
AvgNumber currentValue,
int groupCount)
Calculates average.
|
int |
count(Object value,
Integer groupCount)
Calculates number of rows.
|
Map<String,String> |
getPatterns()
Gets the function call patterns.
|
static PivotFunctions |
instance()
Singleton instance of the PivotFunctions.
|
Object |
max(Object value,
Object currentValue)
Calculates maximum.
|
Object |
min(Object value,
Object currentValue)
Calculates minimum.
|
Number |
sum(Object value,
Object currentValue)
Calculates sum.
|
public static PivotFunctions instance()
public Number avg(Object value, AvgNumber currentValue, int groupCount)
value
- the field valuecurrentValue
- the current valuegroupCount
- the group countpublic int count(Object value, Integer groupCount)
value
- the field valuegroupCount
- the group countpublic Map<String,String> getPatterns()
public Object max(Object value, Object currentValue)
value
- the field valuecurrentValue
- the current valuepublic Object min(Object value, Object currentValue)
value
- the field valuecurrentValue
- the current valuepublic Number sum(Object value, Object currentValue)
value
- the field valuecurrentValue
- the current valueCopyright © 2010-2020 Toolsverse. All Rights Reserved.