Class AbstractGroupByVariableInterpreterES<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>
java.lang.Object
io.camunda.optimize.service.db.es.report.interpreter.groupby.AbstractGroupByInterpreterES<DATA,PLAN>
io.camunda.optimize.service.db.es.report.interpreter.groupby.AbstractGroupByVariableInterpreterES<DATA,PLAN>
- Direct Known Subclasses:
DecisionGroupByInputVariableInterpreterES,DecisionGroupByOutputVariableInterpreterES,ProcessGroupByVariableInterpreterES
public abstract class AbstractGroupByVariableInterpreterES<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>
extends AbstractGroupByInterpreterES<DATA,PLAN>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryResult(CompositeCommandResult compositeCommandResult, co.elastic.clients.elasticsearch.core.search.ResponseBody<?> response, ExecutionContext<DATA, PLAN> context) Map<String, co.elastic.clients.elasticsearch._types.aggregations.Aggregation.Builder.ContainerBuilder> createAggregation(co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery boolQuery, ExecutionContext<DATA, PLAN> context) protected abstract DefinitionServicegetMinMaxStats(ExecutionContext<DATA, PLAN> context, co.elastic.clients.elasticsearch._types.query_dsl.Query baseQuery) This method returns the min and maximum values for range value types (e.g. number or date).protected abstract Stringprotected abstract Stringprotected abstract Stringprotected abstract VariableAggregationServiceESprotected abstract StringgetVariableName(ExecutionContext<DATA, PLAN> context) protected abstract Stringprotected abstract VariableTypegetVariableType(ExecutionContext<DATA, PLAN> context) protected abstract co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery.BuilderMethods inherited from class io.camunda.optimize.service.db.es.report.interpreter.groupby.AbstractGroupByInterpreterES
adjustSearchRequest, getDistributedByInterpreter, getIndexNames, getViewInterpreter, retrieveQueryResult
-
Field Details
-
FILTERED_FLOW_NODE_AGGREGATION
- See Also:
-
-
Constructor Details
-
AbstractGroupByVariableInterpreterES
public AbstractGroupByVariableInterpreterES()
-
-
Method Details
-
getVariableAggregationService
-
getDefinitionService
-
getVariableName
-
getVariableType
-
getNestedVariableNameFieldLabel
-
getNestedVariableTypeField
-
getNestedVariableValueFieldLabel
-
getVariablePath
-
getVariableUndefinedOrNullQuery
protected abstract co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery.Builder getVariableUndefinedOrNullQuery(ExecutionContext<DATA, PLAN> context) -
getMinMaxStats
public Optional<MinMaxStatDto> getMinMaxStats(ExecutionContext<DATA, PLAN> context, co.elastic.clients.elasticsearch._types.query_dsl.Query baseQuery) Description copied from class:AbstractGroupByInterpreterESThis method returns the min and maximum values for range value types (e.g. number or date). It defaults to an empty result and needs to get overridden when applicable.- Overrides:
getMinMaxStatsin classAbstractGroupByInterpreterES<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan> - Parameters:
context- command execution context to perform the min max retrieval withbaseQuery- filtering query on which data to perform the min max retrieval- Returns:
- min and max value range for the value grouped on by
-
createAggregation
public Map<String,co.elastic.clients.elasticsearch._types.aggregations.Aggregation.Builder.ContainerBuilder> createAggregation(co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery boolQuery, ExecutionContext<DATA, PLAN> context) - Specified by:
createAggregationin classAbstractGroupByInterpreterES<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>
-
addQueryResult
public void addQueryResult(CompositeCommandResult compositeCommandResult, co.elastic.clients.elasticsearch.core.search.ResponseBody<?> response, ExecutionContext<DATA, PLAN> context) - Specified by:
addQueryResultin classAbstractGroupByInterpreterES<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>
-