Class AbstractProcessGroupByProcessInstanceDateInterpreterOS
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.AbstractProcessGroupByProcessInstanceDateInterpreterOS
- All Implemented Interfaces:
GroupByInterpreterOS<ProcessReportDataDto,,ProcessExecutionPlan> ProcessGroupByInterpreterOS
- Direct Known Subclasses:
ProcessGroupByProcessInstanceEndDateInterpreterOS,ProcessGroupByProcessInstanceStartDateInterpreterOS
public abstract class AbstractProcessGroupByProcessInstanceDateInterpreterOS
extends AbstractProcessGroupByInterpreterOS
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryResult(CompositeCommandResult result, org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) voidadjustSearchRequest(org.opensearch.client.opensearch.core.SearchRequest.Builder searchRequestBuilder, org.opensearch.client.opensearch._types.query_dsl.Query baseQuery, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query query, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query query, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context, AggregateByDateUnit unit) protected abstract ConfigurationServiceprotected abstract DateAggregationServiceOSabstract StringgetMinMaxStats(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).protected abstract MinMaxStatsServiceOSprotected abstract ProcessQueryFilterEnhancerOSMethods 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, getDistributedByInterpreter, getViewInterpreter, 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, retrieveQueryResultMethods inherited from interface io.camunda.optimize.service.db.os.report.interpreter.groupby.process.ProcessGroupByInterpreterOS
getSupportedGroupBys
-
Constructor Details
-
AbstractProcessGroupByProcessInstanceDateInterpreterOS
public AbstractProcessGroupByProcessInstanceDateInterpreterOS()
-
-
Method Details
-
getConfigurationService
-
getDateAggregationService
-
getMinMaxStatsService
-
getQueryFilterEnhancer
-
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
-
adjustSearchRequest
public void adjustSearchRequest(org.opensearch.client.opensearch.core.SearchRequest.Builder searchRequestBuilder, org.opensearch.client.opensearch._types.query_dsl.Query baseQuery, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
adjustSearchRequestin interfaceGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan> - Overrides:
adjustSearchRequestin classAbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
getDateField
-
createAggregation
public Map<String,org.opensearch.client.opensearch._types.aggregations.Aggregation> createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query query, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
createAggregationin interfaceGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan> - Specified by:
createAggregationin classAbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
createAggregation
public Map<String,org.opensearch.client.opensearch._types.aggregations.Aggregation> createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query query, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context, AggregateByDateUnit unit) -
addQueryResult
public void addQueryResult(CompositeCommandResult result, org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
addQueryResultin classAbstractGroupByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-