Class AbstractGroupByVariableInterpreterOS<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>
java.lang.Object
io.camunda.optimize.service.db.os.report.interpreter.groupby.AbstractGroupByInterpreterOS<DATA,PLAN>
io.camunda.optimize.service.db.os.report.interpreter.groupby.AbstractGroupByVariableInterpreterOS<DATA,PLAN>
- Direct Known Subclasses:
DecisionGroupByInputVariableInterpreterOS,DecisionGroupByOutputVariableInterpreterOS,ProcessGroupByVariableInterpreterOS
public abstract class AbstractGroupByVariableInterpreterOS<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>
extends AbstractGroupByInterpreterOS<DATA,PLAN>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryResult(CompositeCommandResult compositeCommandResult, org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, ExecutionContext<DATA, PLAN> context) createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query query, ExecutionContext<DATA, PLAN> context) protected abstract DefinitionServicegetMinMaxStats(ExecutionContext<DATA, PLAN> context, org.opensearch.client.opensearch._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 VariableAggregationServiceOSprotected abstract StringgetVariableName(ExecutionContext<DATA, PLAN> context) protected abstract Stringprotected abstract VariableTypegetVariableType(ExecutionContext<DATA, PLAN> context) protected abstract org.opensearch.client.opensearch._types.query_dsl.QueryMethods inherited from class io.camunda.optimize.service.db.os.report.interpreter.groupby.AbstractGroupByInterpreterOS
adjustQuery, adjustSearchRequest, getDistributedByInterpreter, getIndexNames, getViewInterpreter, retrieveQueryResult
-
Field Details
-
FILTERED_FLOW_NODE_AGGREGATION
- See Also:
-
-
Constructor Details
-
AbstractGroupByVariableInterpreterOS
public AbstractGroupByVariableInterpreterOS()
-
-
Method Details
-
getVariableAggregationService
-
getDefinitionService
-
getVariableName
-
getVariableType
-
getNestedVariableNameFieldLabel
-
getNestedVariableTypeField
-
getNestedVariableValueFieldLabel
-
getVariablePath
-
getVariableUndefinedOrNullQuery
protected abstract org.opensearch.client.opensearch._types.query_dsl.Query getVariableUndefinedOrNullQuery(ExecutionContext<DATA, PLAN> context) -
getMinMaxStats
public Optional<MinMaxStatDto> getMinMaxStats(ExecutionContext<DATA, PLAN> context, org.opensearch.client.opensearch._types.query_dsl.Query baseQuery) Description copied from class:AbstractGroupByInterpreterOSThis 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 classAbstractGroupByInterpreterOS<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,org.opensearch.client.opensearch._types.aggregations.Aggregation> createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query query, ExecutionContext<DATA, PLAN> context) - Specified by:
createAggregationin classAbstractGroupByInterpreterOS<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>
-
addQueryResult
public void addQueryResult(CompositeCommandResult compositeCommandResult, org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, ExecutionContext<DATA, PLAN> context) - Specified by:
addQueryResultin classAbstractGroupByInterpreterOS<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>
-