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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classsumFieldName == nullmeans count-only.static classstatic classstatic classBacks bothgroupByFieldWithSumFieldandgroupByFieldWithAvgField— the structure (terms-by-field + numeric-sub-agg-by-field) is identical, only the ES aggregation type differs.static classstatic classstatic classstatic classstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredAvgSettings> protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateNestedFieldFilteredAvgSettings> protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.FieldGroupByWithSubAggSettings> protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.FieldGroupByWithSubAggSettings> protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupBySettings> protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithPercentileSettings> protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavgFieldValue(String aggregationName, String fieldName) Adds an aggregation that will calculate the average of a direct numeric field.avgNestedFieldFiltered(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName) Avg aggregation on a numeric field inside an ES nested object, with the document selection restricted by a filter on another field of the same nested object (e.g. only nested objects wheretype=tool).avgVariableValue(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.countDistinctFieldValue(String aggregationName, String fieldName) Cardinality (distinct count) aggregation on a keyword field.countStarted(String aggregationName) Adds an aggregation that will count the started instances.distributionBusinessStatus(String aggregationName, int size) Adds an aggregation that will create a distribution (i.e. buckets) of the possible values of the business status field.distributionParentScopeBusinessStatus(String aggregationName, int size) Adds an aggregation that will create a distribution (i.e. buckets) of the possible values of the parent scope business status field.distributionRootScopeBusinessStatus(String aggregationName, int size) Adds an aggregation that will create a distribution (i.e. buckets) of the possible values of the root scope business status field.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.Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithPercentileSettings> Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> 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 yeargroupByDateStartedAndField(String aggregationName, String interval, String fieldName, int size, String order) Date histogram on startTime with a terms sub-aggregation on the given keyword field.groupByDateStartedAndFieldWithSumField(String aggregationName, String interval, String fieldName, int size, String sumFieldName, String order) Date histogram on startTime with a terms sub-aggregation on a keyword field and a sum leaf-aggregation on a numeric field per term.groupByDateStartedWithAvgField(String aggregationName, String interval, String fieldName) Date histogram on startTime with an avg sub-aggregation on the given numeric field.groupByDateStartedWithAvgNestedFieldFiltered(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, String interval) Date histogram on startTime with an avg sub-aggregation over a numeric field inside an ES nested object, with the document selection restricted by a filter on another field of the same nested object.groupByDateStartedWithPercentileField(String aggregationName, String interval, String fieldName, double percent) Date histogram on startTime with a single-percentile sub-aggregation on a numeric field.groupByDateStartedWithSumField(String aggregationName, String interval, String fieldName) Date histogram on startTime with a sum sub-aggregation on the given numeric field.groupByDefinitionKey(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).groupByField(String aggregationName, String fieldName, int size) Adds a terms aggregation on a keyword field.groupByFieldWithAvgField(String aggregationName, String fieldName, int size, String avgFieldName) Terms aggregation on a keyword field with an avg sub-aggregation on the given numeric field.groupByFieldWithAvgField(String aggregationName, String fieldName, int size, String avgFieldName, String order) Same asStandardDataQueryBuilder.AggregationList.groupByFieldWithAvgField(String, String, int, String)but with explicit bucket ordering; seeStandardDataQueryBuilder.AggregationList.groupByFieldWithSumField(String, String, int, String, String)for acceptedordervalues.groupByFieldWithSumField(String aggregationName, String fieldName, int size, String sumFieldName) Terms aggregation on a keyword field with a sum sub-aggregation on the given numeric field.groupByFieldWithSumField(String aggregationName, String fieldName, int size, String sumFieldName, String order) Same asStandardDataQueryBuilder.AggregationList.groupByFieldWithSumField(String, String, int, String)but with explicit bucket ordering.groupByNestedField(String aggregationName, String nestedPath, String fieldName, int size) Adds a terms aggregation on a keyword field inside an ES nested object.groupByNestedFieldFiltered(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size) Terms aggregation on a keyword field inside an ES nested object, with the bucket selection restricted by a filter on another field of the same nested object (e.g. only nested objects wheretype=tool).groupByNestedFieldFiltered(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String order) Same asStandardDataQueryBuilder.AggregationList.groupByNestedFieldFiltered(String, String, String, String, String, int)but with a configurable sort direction on the innertermsaggregation by_count.groupByNestedFieldFilteredWithAvgField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String avgFieldName) Mirror ofStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithSumField(String, String, String, String, String, int, String)using avg instead of sum.groupByNestedFieldFilteredWithAvgField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String avgFieldName, String order) Same asStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithAvgField(String, String, String, String, String, int, String)but with explicit bucket ordering.groupByNestedFieldFilteredWithPercentileField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String percentileFieldName, double percent) Mirror ofStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithSumField(String, String, String, String, String, int, String)using a single-percentile sub-aggregation.groupByNestedFieldFilteredWithPercentileField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String percentileFieldName, double percent, String order) Same asStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithPercentileField(String, String, String, String, String, int, String, double)but with explicit bucket ordering.groupByNestedFieldFilteredWithSumField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String sumFieldName) Terms aggregation on a keyword field inside an ES nested object, restricted by a filter on a sibling field of that nested object, with a sum sub-aggregation on a numeric field within the same nested context.groupByNestedFieldFilteredWithSumField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String sumFieldName, String order) Same asStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithSumField(String, String, String, String, String, int, String)but with explicit bucket ordering; seeStandardDataQueryBuilder.AggregationList.groupByFieldWithSumField(String, String, int, String, String)for acceptedordervalues.maxFieldValue(String aggregationName, String fieldName) Adds an aggregation that will calculate the max of a direct numeric field.maxVariableValue(String aggregationName, String variableName) Adds an aggregation that will calculate the maximum value of a numeric variable with the given name.minFieldValue(String aggregationName, String fieldName) Adds an aggregation that will calculate the min of a direct numeric field.minVariableValue(String aggregationName, String variableName) Adds an aggregation that will calculate the minimum value of a numeric variable with the given name.percentileFieldValue(String aggregationName, String fieldName, double percent) Single-percentile aggregation on a numeric field.stddevVariableValue(String aggregationName, String variableName) Adds an aggregation that will calculate the standard deviation of a numeric variable with the given name.sumFieldValue(String aggregationName, String fieldName) Adds an aggregation that will calculate the sum of a direct numeric field.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 -
sumFieldValueAggregations
-
avgFieldValueAggregations
-
maxFieldValueAggregations
-
minFieldValueAggregations
-
groupByFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.FieldGroupBySettings> groupByFieldAggregations -
groupByNestedFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldGroupBySettings> groupByNestedFieldAggregations -
countDistinctFieldValueAggregations
-
groupByDateStartedWithSumFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateFieldAggSettings> groupByDateStartedWithSumFieldAggregations -
groupByDateStartedWithAvgFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateFieldAggSettings> groupByDateStartedWithAvgFieldAggregations -
groupByDateStartedAndFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateTermsAggSettings> groupByDateStartedAndFieldAggregations -
groupByFieldWithSumFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.FieldGroupByWithSubAggSettings> groupByFieldWithSumFieldAggregations -
groupByFieldWithAvgFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.FieldGroupByWithSubAggSettings> groupByFieldWithAvgFieldAggregations -
groupByNestedFieldFilteredAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupBySettings> groupByNestedFieldFilteredAggregations -
avgNestedFieldFilteredAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredAvgSettings> avgNestedFieldFilteredAggregations -
groupByDateStartedWithAvgNestedFieldFilteredAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateNestedFieldFilteredAvgSettings> groupByDateStartedWithAvgNestedFieldFilteredAggregations -
percentileFieldValueAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.PercentileSettings> percentileFieldValueAggregations -
groupByDateStartedWithPercentileFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DatePercentileSettings> groupByDateStartedWithPercentileFieldAggregations -
groupByNestedFieldFilteredWithSumFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> groupByNestedFieldFilteredWithSumFieldAggregations -
groupByNestedFieldFilteredWithAvgFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> groupByNestedFieldFilteredWithAvgFieldAggregations -
groupByNestedFieldFilteredWithPercentileFieldAggregations
protected Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithPercentileSettings> groupByNestedFieldFilteredWithPercentileFieldAggregations -
distributionBusinessStatusAggregations
-
distributionParentScopeBusinessStatusAggregations
-
distributionRootScopeBusinessStatusAggregations
-
-
Constructor Details
-
AggregationListImpl
public AggregationListImpl()
-
-
Method Details
-
countByIdField
Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will do a cardinality aggregation on the id field, which gives back an approximation of the amount of documents.- Specified by:
countByIdFieldin interfaceStandardDataQueryBuilder.AggregationList
-
countCompleted
Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will count the completed instances.- Specified by:
countCompletedin interfaceStandardDataQueryBuilder.AggregationList
-
countActive
Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will count the active instances.- Specified by:
countActivein interfaceStandardDataQueryBuilder.AggregationList
-
countStarted
Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will count the started instances.- Specified by:
countStartedin interfaceStandardDataQueryBuilder.AggregationList
-
groupByDefinitionKey
Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will group the results by definition key.- Specified by:
groupByDefinitionKeyin interfaceStandardDataQueryBuilder.AggregationList
-
groupByDefinitionKeyAndState
public StandardDataQueryBuilder.AggregationList groupByDefinitionKeyAndState(String aggregationName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will group the results by definition key and its state (completed/active).- Specified by:
groupByDefinitionKeyAndStatein interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateCompleted
public StandardDataQueryBuilder.AggregationList groupByDateCompleted(String aggregationName, String interval) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will group the results by date started The interval can be day, week, month, quarter or year- Specified by:
groupByDateCompletedin interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateStarted
public StandardDataQueryBuilder.AggregationList groupByDateStarted(String aggregationName, String interval) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will group the results by end time The interval can be day, week, month, quarter or year- Specified by:
groupByDateStartedin interfaceStandardDataQueryBuilder.AggregationList
-
maxVariableValue
public StandardDataQueryBuilder.AggregationList maxVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the maximum value of a numeric variable with the given name.- Specified by:
maxVariableValuein interfaceStandardDataQueryBuilder.AggregationList
-
minVariableValue
public StandardDataQueryBuilder.AggregationList minVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the minimum value of a numeric variable with the given name.- Specified by:
minVariableValuein interfaceStandardDataQueryBuilder.AggregationList
-
avgVariableValue
public StandardDataQueryBuilder.AggregationList avgVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the average value of a numeric variable with the given name.- Specified by:
avgVariableValuein interfaceStandardDataQueryBuilder.AggregationList
-
stddevVariableValue
public StandardDataQueryBuilder.AggregationList stddevVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the standard deviation of a numeric variable with the given name.- Specified by:
stddevVariableValuein interfaceStandardDataQueryBuilder.AggregationList
-
sumVariableValue
public StandardDataQueryBuilder.AggregationList sumVariableValue(String aggregationName, String variableName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the sum of a numeric variable with the given name.- Specified by:
sumVariableValuein interfaceStandardDataQueryBuilder.AggregationList
-
distributionVariableValue
public StandardDataQueryBuilder.AggregationList distributionVariableValue(String aggregationName, String variableName, int size) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds 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:
distributionVariableValuein interfaceStandardDataQueryBuilder.AggregationList
-
sumFieldValue
public StandardDataQueryBuilder.AggregationList sumFieldValue(String aggregationName, String fieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the sum of a direct numeric field.- Specified by:
sumFieldValuein interfaceStandardDataQueryBuilder.AggregationList
-
avgFieldValue
public StandardDataQueryBuilder.AggregationList avgFieldValue(String aggregationName, String fieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the average of a direct numeric field.- Specified by:
avgFieldValuein interfaceStandardDataQueryBuilder.AggregationList
-
maxFieldValue
public StandardDataQueryBuilder.AggregationList maxFieldValue(String aggregationName, String fieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the max of a direct numeric field.- Specified by:
maxFieldValuein interfaceStandardDataQueryBuilder.AggregationList
-
minFieldValue
public StandardDataQueryBuilder.AggregationList minFieldValue(String aggregationName, String fieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will calculate the min of a direct numeric field.- Specified by:
minFieldValuein interfaceStandardDataQueryBuilder.AggregationList
-
groupByField
public StandardDataQueryBuilder.AggregationList groupByField(String aggregationName, String fieldName, int size) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds a terms aggregation on a keyword field.- Specified by:
groupByFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedField
public StandardDataQueryBuilder.AggregationList groupByNestedField(String aggregationName, String nestedPath, String fieldName, int size) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds a terms aggregation on a keyword field inside an ES nested object. Generates anestedwrapper around thetermsaggregation.- Specified by:
groupByNestedFieldin interfaceStandardDataQueryBuilder.AggregationList
-
countDistinctFieldValue
public StandardDataQueryBuilder.AggregationList countDistinctFieldValue(String aggregationName, String fieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListCardinality (distinct count) aggregation on a keyword field.- Specified by:
countDistinctFieldValuein interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateStartedWithSumField
public StandardDataQueryBuilder.AggregationList groupByDateStartedWithSumField(String aggregationName, String interval, String fieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListDate histogram on startTime with a sum sub-aggregation on the given numeric field.- Specified by:
groupByDateStartedWithSumFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateStartedWithAvgField
public StandardDataQueryBuilder.AggregationList groupByDateStartedWithAvgField(String aggregationName, String interval, String fieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListDate histogram on startTime with an avg sub-aggregation on the given numeric field.- Specified by:
groupByDateStartedWithAvgFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateStartedAndField
public StandardDataQueryBuilder.AggregationList groupByDateStartedAndField(String aggregationName, String interval, String fieldName, int size, String order) Description copied from interface:StandardDataQueryBuilder.AggregationListDate histogram on startTime with a terms sub-aggregation on the given keyword field.- Specified by:
groupByDateStartedAndFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateStartedAndFieldWithSumField
public StandardDataQueryBuilder.AggregationList groupByDateStartedAndFieldWithSumField(String aggregationName, String interval, String fieldName, int size, String sumFieldName, String order) Description copied from interface:StandardDataQueryBuilder.AggregationListDate histogram on startTime with a terms sub-aggregation on a keyword field and a sum leaf-aggregation on a numeric field per term.- Specified by:
groupByDateStartedAndFieldWithSumFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByFieldWithSumField
public StandardDataQueryBuilder.AggregationList groupByFieldWithSumField(String aggregationName, String fieldName, int size, String sumFieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListTerms aggregation on a keyword field with a sum sub-aggregation on the given numeric field.- Specified by:
groupByFieldWithSumFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByFieldWithSumField
public StandardDataQueryBuilder.AggregationList groupByFieldWithSumField(String aggregationName, String fieldName, int size, String sumFieldName, String order) Description copied from interface:StandardDataQueryBuilder.AggregationListSame asStandardDataQueryBuilder.AggregationList.groupByFieldWithSumField(String, String, int, String)but with explicit bucket ordering. Acceptedordervalues:countDesc(default),countAsc,valueDesc(top-N by sub-agg sum) andvalueAsc. Selecting value-based ordering also bumpsshard_sizeto compensate for the terms-aggregation accuracy loss documented by Elasticsearch.- Specified by:
groupByFieldWithSumFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedFieldFiltered
public StandardDataQueryBuilder.AggregationList groupByNestedFieldFiltered(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size) Description copied from interface:StandardDataQueryBuilder.AggregationListTerms aggregation on a keyword field inside an ES nested object, with the bucket selection restricted by a filter on another field of the same nested object (e.g. only nested objects wheretype=tool). Generatesnested > filter > termsaggregation.- Specified by:
groupByNestedFieldFilteredin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedFieldFiltered
public StandardDataQueryBuilder.AggregationList groupByNestedFieldFiltered(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String order) Description copied from interface:StandardDataQueryBuilder.AggregationListSame asStandardDataQueryBuilder.AggregationList.groupByNestedFieldFiltered(String, String, String, String, String, int)but with a configurable sort direction on the innertermsaggregation by_count. Use"asc"to surface least-used buckets, or"desc"for the default most-used behaviour.- Specified by:
groupByNestedFieldFilteredin interfaceStandardDataQueryBuilder.AggregationList
-
avgNestedFieldFiltered
public StandardDataQueryBuilder.AggregationList avgNestedFieldFiltered(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListAvg aggregation on a numeric field inside an ES nested object, with the document selection restricted by a filter on another field of the same nested object (e.g. only nested objects wheretype=tool). Generatesnested > filter > avgaggregation.- Specified by:
avgNestedFieldFilteredin interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateStartedWithAvgNestedFieldFiltered
public StandardDataQueryBuilder.AggregationList groupByDateStartedWithAvgNestedFieldFiltered(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, String interval) Description copied from interface:StandardDataQueryBuilder.AggregationListDate histogram on startTime with an avg sub-aggregation over a numeric field inside an ES nested object, with the document selection restricted by a filter on another field of the same nested object. Generatesdate_histogram > nested > filter > avgaggregation.- Specified by:
groupByDateStartedWithAvgNestedFieldFilteredin interfaceStandardDataQueryBuilder.AggregationList
-
groupByFieldWithAvgField
public StandardDataQueryBuilder.AggregationList groupByFieldWithAvgField(String aggregationName, String fieldName, int size, String avgFieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListTerms aggregation on a keyword field with an avg sub-aggregation on the given numeric field. Mirror ofStandardDataQueryBuilder.AggregationList.groupByFieldWithSumField(String, String, int, String).- Specified by:
groupByFieldWithAvgFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByFieldWithAvgField
public StandardDataQueryBuilder.AggregationList groupByFieldWithAvgField(String aggregationName, String fieldName, int size, String avgFieldName, String order) Description copied from interface:StandardDataQueryBuilder.AggregationListSame asStandardDataQueryBuilder.AggregationList.groupByFieldWithAvgField(String, String, int, String)but with explicit bucket ordering; seeStandardDataQueryBuilder.AggregationList.groupByFieldWithSumField(String, String, int, String, String)for acceptedordervalues.- Specified by:
groupByFieldWithAvgFieldin interfaceStandardDataQueryBuilder.AggregationList
-
percentileFieldValue
public StandardDataQueryBuilder.AggregationList percentileFieldValue(String aggregationName, String fieldName, double percent) Description copied from interface:StandardDataQueryBuilder.AggregationListSingle-percentile aggregation on a numeric field. Returns one value viavalues.<percent>in the result.- Specified by:
percentileFieldValuein interfaceStandardDataQueryBuilder.AggregationList
-
groupByDateStartedWithPercentileField
public StandardDataQueryBuilder.AggregationList groupByDateStartedWithPercentileField(String aggregationName, String interval, String fieldName, double percent) Description copied from interface:StandardDataQueryBuilder.AggregationListDate histogram on startTime with a single-percentile sub-aggregation on a numeric field. Generatesdate_histogram > percentilesaggregation.- Specified by:
groupByDateStartedWithPercentileFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedFieldFilteredWithSumField
public StandardDataQueryBuilder.AggregationList groupByNestedFieldFilteredWithSumField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String sumFieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListTerms aggregation on a keyword field inside an ES nested object, restricted by a filter on a sibling field of that nested object, with a sum sub-aggregation on a numeric field within the same nested context. Generatesnested > filter > terms > sumaggregation.- Specified by:
groupByNestedFieldFilteredWithSumFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedFieldFilteredWithSumField
public StandardDataQueryBuilder.AggregationList groupByNestedFieldFilteredWithSumField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String sumFieldName, String order) Description copied from interface:StandardDataQueryBuilder.AggregationListSame asStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithSumField(String, String, String, String, String, int, String)but with explicit bucket ordering; seeStandardDataQueryBuilder.AggregationList.groupByFieldWithSumField(String, String, int, String, String)for acceptedordervalues.- Specified by:
groupByNestedFieldFilteredWithSumFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedFieldFilteredWithAvgField
public StandardDataQueryBuilder.AggregationList groupByNestedFieldFilteredWithAvgField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String avgFieldName) Description copied from interface:StandardDataQueryBuilder.AggregationListMirror ofStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithSumField(String, String, String, String, String, int, String)using avg instead of sum.- Specified by:
groupByNestedFieldFilteredWithAvgFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedFieldFilteredWithAvgField
public StandardDataQueryBuilder.AggregationList groupByNestedFieldFilteredWithAvgField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String avgFieldName, String order) Description copied from interface:StandardDataQueryBuilder.AggregationListSame asStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithAvgField(String, String, String, String, String, int, String)but with explicit bucket ordering.- Specified by:
groupByNestedFieldFilteredWithAvgFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedFieldFilteredWithPercentileField
public StandardDataQueryBuilder.AggregationList groupByNestedFieldFilteredWithPercentileField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String percentileFieldName, double percent) Description copied from interface:StandardDataQueryBuilder.AggregationListMirror ofStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithSumField(String, String, String, String, String, int, String)using a single-percentile sub-aggregation.- Specified by:
groupByNestedFieldFilteredWithPercentileFieldin interfaceStandardDataQueryBuilder.AggregationList
-
groupByNestedFieldFilteredWithPercentileField
public StandardDataQueryBuilder.AggregationList groupByNestedFieldFilteredWithPercentileField(String aggregationName, String nestedPath, String filterField, String filterValue, String fieldName, int size, String percentileFieldName, double percent, String order) Description copied from interface:StandardDataQueryBuilder.AggregationListSame asStandardDataQueryBuilder.AggregationList.groupByNestedFieldFilteredWithPercentileField(String, String, String, String, String, int, String, double)but with explicit bucket ordering. ForvalueAsc/valueDesc, ordering is on the requested percentile value.- Specified by:
groupByNestedFieldFilteredWithPercentileFieldin interfaceStandardDataQueryBuilder.AggregationList
-
distributionBusinessStatus
public StandardDataQueryBuilder.AggregationList distributionBusinessStatus(String aggregationName, int size) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will create a distribution (i.e. buckets) of the possible values of the business status field. E.g. { 'OPEN': 23, 'CLOSED': 12, 'IN_PROGRESS': 3} The results are ordered by value (most occurrences first)- Specified by:
distributionBusinessStatusin interfaceStandardDataQueryBuilder.AggregationList
-
distributionParentScopeBusinessStatus
public StandardDataQueryBuilder.AggregationList distributionParentScopeBusinessStatus(String aggregationName, int size) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will create a distribution (i.e. buckets) of the possible values of the parent scope business status field. This is the business status of the directly owning case/process and is available on scopes that are nested under a parent (including tasks, which inherit it from their owning case/process). E.g. { 'OPEN': 23, 'CLOSED': 12, 'IN_PROGRESS': 3} The results are ordered by value (most occurrences first)- Specified by:
distributionParentScopeBusinessStatusin interfaceStandardDataQueryBuilder.AggregationList
-
distributionRootScopeBusinessStatus
public StandardDataQueryBuilder.AggregationList distributionRootScopeBusinessStatus(String aggregationName, int size) Description copied from interface:StandardDataQueryBuilder.AggregationListAdds an aggregation that will create a distribution (i.e. buckets) of the possible values of the root scope business status field. This is the business status of the top-level case/process and is available on scopes that are nested under a root (including tasks, which inherit it from their root case/process). E.g. { 'OPEN': 23, 'CLOSED': 12, 'IN_PROGRESS': 3} The results are ordered by value (most occurrences first)- Specified by:
distributionRootScopeBusinessStatusin interfaceStandardDataQueryBuilder.AggregationList
-
getCountActiveAggregations
-
getCountStartedAggregations
-
getCountByIdAggregations
-
getCountCompletedAggregations
-
getGroupByDefinitionKeyAggregations
-
getGroupByDefinitionKeyAndStateAggregations
-
getGroupByDateCompletedAggregations
-
getGroupByDateStartedAggregations
-
getMaxVariableValueAggregations
-
getMinVariableValueAggregations
-
getAvgVariableValueAggregations
-
getStddevVariableValueAggregations
-
getSumVariableValueAggregations
-
getDistributionVariableValueAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DistributionSettings> getDistributionVariableValueAggregations() -
getSumFieldValueAggregations
-
getAvgFieldValueAggregations
-
getMaxFieldValueAggregations
-
getMinFieldValueAggregations
-
getGroupByFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.FieldGroupBySettings> getGroupByFieldAggregations() -
getGroupByNestedFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldGroupBySettings> getGroupByNestedFieldAggregations() -
getCountDistinctFieldValueAggregations
-
getGroupByDateStartedWithSumFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateFieldAggSettings> getGroupByDateStartedWithSumFieldAggregations() -
getGroupByDateStartedWithAvgFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateFieldAggSettings> getGroupByDateStartedWithAvgFieldAggregations() -
getGroupByDateStartedAndFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateTermsAggSettings> getGroupByDateStartedAndFieldAggregations() -
getGroupByFieldWithSumFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.FieldGroupByWithSubAggSettings> getGroupByFieldWithSumFieldAggregations() -
getGroupByNestedFieldFilteredAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupBySettings> getGroupByNestedFieldFilteredAggregations() -
getAvgNestedFieldFilteredAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredAvgSettings> getAvgNestedFieldFilteredAggregations() -
getGroupByDateStartedWithAvgNestedFieldFilteredAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DateNestedFieldFilteredAvgSettings> getGroupByDateStartedWithAvgNestedFieldFilteredAggregations() -
getGroupByFieldWithAvgFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.FieldGroupByWithSubAggSettings> getGroupByFieldWithAvgFieldAggregations() -
getPercentileFieldValueAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.PercentileSettings> getPercentileFieldValueAggregations() -
getGroupByDateStartedWithPercentileFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.DatePercentileSettings> getGroupByDateStartedWithPercentileFieldAggregations() -
getGroupByNestedFieldFilteredWithSumFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> getGroupByNestedFieldFilteredWithSumFieldAggregations() -
getGroupByNestedFieldFilteredWithAvgFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithSubAggSettings> getGroupByNestedFieldFilteredWithAvgFieldAggregations() -
getGroupByNestedFieldFilteredWithPercentileFieldAggregations
public Map<String, StandardDataQueryBuilderImpl.AggregationListImpl.NestedFieldFilteredGroupByWithPercentileSettings> getGroupByNestedFieldFilteredWithPercentileFieldAggregations() -
getDistributionBusinessStatusAggregations
-
getDistributionParentScopeBusinessStatusAggregations
-
getDistributionRootScopeBusinessStatusAggregations
-