Class ProcessGroupByDurationInterpreterOS
java.lang.Object
io.camunda.optimize.service.db.os.report.interpreter.groupby.AbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
io.camunda.optimize.service.db.os.report.interpreter.groupby.process.AbstractProcessGroupByInterpreterOS
io.camunda.optimize.service.db.os.report.interpreter.groupby.process.date.ProcessGroupByDurationInterpreterOS
- All Implemented Interfaces:
GroupByInterpreterOS<ProcessReportDataDto,,ProcessExecutionPlan> ProcessGroupByInterpreterOS
@Component
@Conditional(io.camunda.optimize.service.util.configuration.condition.OpenSearchCondition.class)
public class ProcessGroupByDurationInterpreterOS
extends AbstractProcessGroupByInterpreterOS
-
Constructor Summary
ConstructorsConstructorDescriptionProcessGroupByDurationInterpreterOS(DurationAggregationServiceOS durationAggregationService, MinMaxStatsServiceOS minMaxStatsService, ProcessDistributedByInterpreterFacadeOS distributedByInterpreter, ProcessViewInterpreterFacadeOS viewInterpreter) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryResult(CompositeCommandResult compositeCommandResult, org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query baseQuery, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) getMinMaxStats(ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> 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).Methods inherited from class io.camunda.optimize.service.db.os.report.interpreter.groupby.process.AbstractProcessGroupByInterpreterOS
getIndexNamesMethods inherited from class io.camunda.optimize.service.db.os.report.interpreter.groupby.AbstractGroupByInterpreterOS
adjustQuery, adjustSearchRequest, retrieveQueryResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.camunda.optimize.service.db.os.report.interpreter.groupby.GroupByInterpreterOS
adjustQuery, adjustSearchRequest, retrieveQueryResult
-
Constructor Details
-
ProcessGroupByDurationInterpreterOS
public ProcessGroupByDurationInterpreterOS(DurationAggregationServiceOS durationAggregationService, MinMaxStatsServiceOS minMaxStatsService, ProcessDistributedByInterpreterFacadeOS distributedByInterpreter, ProcessViewInterpreterFacadeOS viewInterpreter)
-
-
Method Details
-
getSupportedGroupBys
-
createAggregation
public Map<String,org.opensearch.client.opensearch._types.aggregations.Aggregation> createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query baseQuery, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
createAggregationin interfaceGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan> - Specified by:
createAggregationin classAbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
addQueryResult
public void addQueryResult(CompositeCommandResult compositeCommandResult, org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
addQueryResultin classAbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
getMinMaxStats
public Optional<MinMaxStatDto> getMinMaxStats(ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> 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.- Specified by:
getMinMaxStatsin interfaceProcessGroupByInterpreterOS- Overrides:
getMinMaxStatsin classAbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan> - 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
-
getDistributedByInterpreter
- Specified by:
getDistributedByInterpreterin classAbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
getViewInterpreter
- Specified by:
getViewInterpreterin classAbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-