Interface StandardDataQueryBuilder.AggregationList
- All Known Implementing Classes:
StandardDataQueryBuilderImpl.AggregationListImpl
- Enclosing interface:
- StandardDataQueryBuilder
public static interface StandardDataQueryBuilder.AggregationList
-
Method Summary
Modifier and TypeMethodDescriptionavgVariableValue
(String aggregationName, String variableName) Adds an aggregation that will calculate the average value of a numeric variable with the given name.countActive
(String aggregationName) Adds an aggregation that will count the active instances.countByIdField
(String aggregationNane) Adds an aggregation that will do a cardinality aggregation on the id field, which gives back an approximation of the amount of documents.countCompleted
(String aggregationName) Adds an aggregation that will count the completed instances.countStarted
(String aggregationName) Adds an aggregation that will count the started instances.distributionVariableValue
(String aggregationName, String variableName, int size) Adds an aggregation that will create a distribution (i.e.groupByDateCompleted
(String aggregationName, String interval) Adds an aggregation that will group the results by date started The interval can be day, week, month, quarter or yeargroupByDateStarted
(String aggregationName, String interval) Adds an aggregation that will group the results by end time The interval can be day, week, month, quarter or yeargroupByDefinitionKey
(String aggregationName) Adds an aggregation that will group the results by definition key.groupByDefinitionKeyAndState
(String aggregationName) Adds an aggregation that will group the results by definition key and its state (completed/active).maxVariableValue
(String aggregationName, String variableName) Adds an aggregation that will calculate the maximum value of a numeric variable with the given name.minVariableValue
(String aggregationName, String variableName) Adds an aggregation that will calculate the minimum value of a numeric variable with the given name.stddevVariableValue
(String aggregationName, String variableName) Adds an aggregation that will calculate the standard deviation of a numeric variable with the given name.sumVariableValue
(String aggregationName, String variableName) Adds an aggregation that will calculate the sum of a numeric variable with the given name.
-
Method Details
-
countByIdField
Adds an aggregation that will do a cardinality aggregation on the id field, which gives back an approximation of the amount of documents. -
countCompleted
Adds an aggregation that will count the completed instances. -
countActive
Adds an aggregation that will count the active instances. -
countStarted
Adds an aggregation that will count the started instances. -
groupByDefinitionKey
Adds an aggregation that will group the results by definition key. -
groupByDefinitionKeyAndState
Adds an aggregation that will group the results by definition key and its state (completed/active). -
groupByDateCompleted
StandardDataQueryBuilder.AggregationList groupByDateCompleted(String aggregationName, String interval) Adds an aggregation that will group the results by date started The interval can be day, week, month, quarter or year -
groupByDateStarted
StandardDataQueryBuilder.AggregationList groupByDateStarted(String aggregationName, String interval) Adds an aggregation that will group the results by end time The interval can be day, week, month, quarter or year -
maxVariableValue
StandardDataQueryBuilder.AggregationList maxVariableValue(String aggregationName, String variableName) Adds an aggregation that will calculate the maximum value of a numeric variable with the given name. -
minVariableValue
StandardDataQueryBuilder.AggregationList minVariableValue(String aggregationName, String variableName) Adds an aggregation that will calculate the minimum value of a numeric variable with the given name. -
avgVariableValue
StandardDataQueryBuilder.AggregationList avgVariableValue(String aggregationName, String variableName) Adds an aggregation that will calculate the average value of a numeric variable with the given name. -
stddevVariableValue
StandardDataQueryBuilder.AggregationList stddevVariableValue(String aggregationName, String variableName) Adds an aggregation that will calculate the standard deviation of a numeric variable with the given name. -
sumVariableValue
StandardDataQueryBuilder.AggregationList sumVariableValue(String aggregationName, String variableName) Adds an aggregation that will calculate the sum of a numeric variable with the given name. -
distributionVariableValue
StandardDataQueryBuilder.AggregationList distributionVariableValue(String aggregationName, String variableName, int size) Adds an aggregation that will create a distribution (i.e. buckets) of the possible text values of a variable. E.g. { 'a': 23, 'b': 12, 'c': 3} The results are ordered by value (most occurrences first)
-