Class StandardDataQueryBuilderImpl.AggregationListImpl
java.lang.Object
com.flowable.indexing.query.builder.standard.StandardDataQueryBuilderImpl.AggregationListImpl
- All Implemented Interfaces:
StandardDataQueryBuilder.AggregationList
- Enclosing class:
- StandardDataQueryBuilderImpl
public static class StandardDataQueryBuilderImpl.AggregationListImpl
extends Object
implements StandardDataQueryBuilder.AggregationList
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
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 aggregationName) 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.
-
Field Details
-
countActiveAggregations
-
countStartedAggregations
-
countByIdAggregations
-
countCompletedAggregations
-
groupByDefinitionKeyAggregations
-
groupByDefinitionKeyAndStateAggregations
-
groupByDateCompletedAggregations
-
groupByDateStartedAggregations
-
maxVariableValueAggregations
-
minVariableValueAggregations
-
avgVariableValueAggregations
-
stddevVariableValueAggregations
-
sumVariableValueAggregations
-
distributionVariableValueAggregations
protected Map<String,StandardDataQueryBuilderImpl.AggregationListImpl.DistributionSettings> distributionVariableValueAggregations
-
-
Constructor Details
-
AggregationListImpl
public AggregationListImpl()
-
-
Method Details
-
countByIdField
Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will do a cardinality aggregation on the id field, which gives back an approximation of the amount of documents.- Specified by:
countByIdField
in interfaceStandardDataQueryBuilder.AggregationList
-
countCompleted
Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will count the completed instances.- Specified by:
countCompleted
in interfaceStandardDataQueryBuilder.AggregationList
-
countActive
Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will count the active instances.- Specified by:
countActive
in interfaceStandardDataQueryBuilder.AggregationList
-
countStarted
Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will count the started instances.- Specified by:
countStarted
in interfaceStandardDataQueryBuilder.AggregationList
-
groupByDefinitionKey
Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will group the results by definition key.- Specified by:
groupByDefinitionKey
in interfaceStandardDataQueryBuilder.AggregationList
-
groupByDefinitionKeyAndState
public StandardDataQueryBuilder.AggregationList groupByDefinitionKeyAndState(String aggregationName) Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will group the results by definition key and its state (completed/active).- Specified by:
groupByDefinitionKeyAndState
in interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateCompleted
public StandardDataQueryBuilder.AggregationList groupByDateCompleted(String aggregationName, String interval) Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will group the results by date started The interval can be day, week, month, quarter or year- Specified by:
groupByDateCompleted
in interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateStarted
public StandardDataQueryBuilder.AggregationList groupByDateStarted(String aggregationName, String interval) Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will group the results by end time The interval can be day, week, month, quarter or year- Specified by:
groupByDateStarted
in interfaceStandardDataQueryBuilder.AggregationList
-
maxVariableValue
public StandardDataQueryBuilder.AggregationList maxVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will calculate the maximum value of a numeric variable with the given name.- Specified by:
maxVariableValue
in interfaceStandardDataQueryBuilder.AggregationList
-
minVariableValue
public StandardDataQueryBuilder.AggregationList minVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will calculate the minimum value of a numeric variable with the given name.- Specified by:
minVariableValue
in interfaceStandardDataQueryBuilder.AggregationList
-
avgVariableValue
public StandardDataQueryBuilder.AggregationList avgVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will calculate the average value of a numeric variable with the given name.- Specified by:
avgVariableValue
in interfaceStandardDataQueryBuilder.AggregationList
-
stddevVariableValue
public StandardDataQueryBuilder.AggregationList stddevVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will calculate the standard deviation of a numeric variable with the given name.- Specified by:
stddevVariableValue
in interfaceStandardDataQueryBuilder.AggregationList
-
sumVariableValue
public StandardDataQueryBuilder.AggregationList sumVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationList
Adds an aggregation that will calculate the sum of a numeric variable with the given name.- Specified by:
sumVariableValue
in interfaceStandardDataQueryBuilder.AggregationList
-
distributionVariableValue
public StandardDataQueryBuilder.AggregationList distributionVariableValue(String aggregationName, String variableName, int size) Description copied from interface:StandardDataQueryBuilder.AggregationList
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)- Specified by:
distributionVariableValue
in interfaceStandardDataQueryBuilder.AggregationList
-
getCountActiveAggregations
-
getCountStartedAggregations
-
getCountByIdAggregations
-
getCountCompletedAggregations
-
getGroupByDefinitionKeyAggregations
-
getGroupByDefinitionKeyAndStateAggregations
-
getGroupByDateCompletedAggregations
-
getGroupByDateStartedAggregations
-
getMaxVariableValueAggregations
-
getMinVariableValueAggregations
-
getAvgVariableValueAggregations
-
getStddevVariableValueAggregations
-
getSumVariableValueAggregations
-
getDistributionVariableValueAggregations
public Map<String,StandardDataQueryBuilderImpl.AggregationListImpl.DistributionSettings> getDistributionVariableValueAggregations()
-