Constructors
StatLib()
Methods
addAggregate(Integer,Integer,String,String,Integer)
Adds an aggregate function to the specified group An aggregate function is a function that is calculated for all values for a given column in a group. For example, the average response time for each category.Available functions:
- Count
- Sum
- Avg
- Max
- Min
addAggregate(Integer,Integer,String,String,Integer,Integer)
Adds an aggregate function to the specified group An aggregate function is a function that is calculated for all values for a given column in a group. For example, the average response time for each category.Available functions:
- Count
- Sum
- Avg
- Max
- Min
addCallback(Integer,String)
Adds a callback. A callback is a PARSER-snippet that will be executed for the given column for each row.This is an old method. Use StatResult and iterate instead.
addGroup(Integer,Bool)
Adds a group to the StatLib instance. A group is a subset of the results that have a common value for a given column. Aggregate values can be calculated for groups, for example, the average response time per category.addGroup(Integer,Bool,Bool)
Adds a group to the StatLib instance. A group is a subset of the results that have a common value for a given column. Aggregate values can be calculated for groups, for example, the average response time per category.dropOrder()
Calling this function will make the StatLib instance skip sorting the results in the groups.execute(Parser)
Runs the query and aggregations and stores the results in a ParserYou can choose between storing in a Parser or a StatResult by passing the appropriate object.
execute(StatResult)
Runs the query and aggregations and stores the results in a StatResultYou can choose between storing in a Parser or a StatResult by passing the appropriate object.