Class StandardDataQueryConfigurationImpl.AggregationImpl
java.lang.Object
com.flowable.platform.engine.impl.deployer.StandardDataQueryConfigurationImpl.AggregationImpl
- All Implemented Interfaces:
StandardDataQueryConfiguration.Aggregation
- Enclosing class:
StandardDataQueryConfigurationImpl
public static class StandardDataQueryConfigurationImpl.AggregationImpl
extends Object
implements StandardDataQueryConfiguration.Aggregation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFor direct-field aggregations (e.g. sumFieldValue, groupByField, groupByNestedField): the ES document field name (e.g.For nested-field aggregations with an inner term filter (e.g.For nested-field aggregations with an inner term filter (seeStandardDataQueryConfiguration.Aggregation.getFilterField()): the value the filter field must match.getName()For groupByNestedField: the ES nested path (e.g.getOrder()For terms-bucket aggregations (e.g.For percentile-based aggregations (e.g.getSize()For composite aggregations with a numeric sub-aggregation (sum, avg or percentile inside a terms bucket): the ES document field the sub-aggregation operates on.getType()For variable-based aggregations (e.g. sumVariableValue): the variable name as stored in thevariablesnested array.voidsetFieldName(String fieldName) voidsetFilterField(String filterField) voidsetFilterValue(String filterValue) voidvoidsetNestedPath(String nestedPath) voidvoidsetPercent(Double percent) voidvoidsetSubAggregationFieldName(String subAggregationFieldName) voidvoidsetVariableName(String variableName)
-
Field Details
-
name
-
type
-
variableName
-
fieldName
-
nestedPath
-
subAggregationFieldName
-
filterField
-
filterValue
-
size
-
percent
-
order
-
-
Constructor Details
-
AggregationImpl
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceStandardDataQueryConfiguration.Aggregation
-
setName
-
getType
- Specified by:
getTypein interfaceStandardDataQueryConfiguration.Aggregation
-
setType
-
getVariableName
Description copied from interface:StandardDataQueryConfiguration.AggregationFor variable-based aggregations (e.g. sumVariableValue): the variable name as stored in thevariablesnested array. Generates a nested ES query to reach the variable value.- Specified by:
getVariableNamein interfaceStandardDataQueryConfiguration.Aggregation
-
setVariableName
-
getFieldName
Description copied from interface:StandardDataQueryConfiguration.AggregationFor direct-field aggregations (e.g. sumFieldValue, groupByField, groupByNestedField): the ES document field name (e.g.totalTokenCount,agentDefinitionKey). Produces a simple{"sum": {"field": "..."}}or{"terms": {"field": "..."}}query without any nesting wrapper — unlike variableName which always needs the variables nested path.- Specified by:
getFieldNamein interfaceStandardDataQueryConfiguration.Aggregation
-
setFieldName
-
getNestedPath
Description copied from interface:StandardDataQueryConfiguration.AggregationFor groupByNestedField: the ES nested path (e.g.exchanges) that wraps the terms aggregation. Required in addition to fieldName when the target field lives inside a nested object.- Specified by:
getNestedPathin interfaceStandardDataQueryConfiguration.Aggregation
-
setNestedPath
-
getSubAggregationFieldName
Description copied from interface:StandardDataQueryConfiguration.AggregationFor composite aggregations with a numeric sub-aggregation (sum, avg or percentile inside a terms bucket): the ES document field the sub-aggregation operates on. Authored in JSON assubAggregationFieldName.- Specified by:
getSubAggregationFieldNamein interfaceStandardDataQueryConfiguration.Aggregation
-
setSubAggregationFieldName
-
getFilterField
Description copied from interface:StandardDataQueryConfiguration.AggregationFor nested-field aggregations with an inner term filter (e.g.groupByNestedFieldFiltered,avgNestedFieldFiltered,groupByDateStartedWithAvgNestedFieldFiltered): the field name (within the nested object) to apply the term filter on.- Specified by:
getFilterFieldin interfaceStandardDataQueryConfiguration.Aggregation
-
setFilterField
-
getFilterValue
Description copied from interface:StandardDataQueryConfiguration.AggregationFor nested-field aggregations with an inner term filter (seeStandardDataQueryConfiguration.Aggregation.getFilterField()): the value the filter field must match.- Specified by:
getFilterValuein interfaceStandardDataQueryConfiguration.Aggregation
-
setFilterValue
-
getSize
- Specified by:
getSizein interfaceStandardDataQueryConfiguration.Aggregation
-
setSize
-
getPercent
Description copied from interface:StandardDataQueryConfiguration.AggregationFor percentile-based aggregations (e.g.percentileFieldValue,groupByDateStartedWithPercentileField,groupByNestedFieldFilteredWithPercentileField): the single percentile to compute (e.g. 50.0, 95.0, 99.0).- Specified by:
getPercentin interfaceStandardDataQueryConfiguration.Aggregation
-
setPercent
-
getOrder
Description copied from interface:StandardDataQueryConfiguration.AggregationFor terms-bucket aggregations (e.g.groupByNestedFieldFiltered): the order direction used by the underlyingtermsaggregation. Either"asc"or"desc"; defaults to"desc". Note that ES still uses the bucket_countto order, only the direction is configurable here.- Specified by:
getOrderin interfaceStandardDataQueryConfiguration.Aggregation
-
setOrder
-