Class AbstractGroupByInterpreterOS<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>

java.lang.Object
io.camunda.optimize.service.db.os.report.interpreter.groupby.AbstractGroupByInterpreterOS<DATA,PLAN>
Direct Known Subclasses:
AbstractDecisionGroupByInterpreterOS, AbstractGroupByVariableInterpreterOS, AbstractProcessGroupByInterpreterOS

public abstract class AbstractGroupByInterpreterOS<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan> extends Object
  • Constructor Details

    • AbstractGroupByInterpreterOS

      public AbstractGroupByInterpreterOS()
  • Method Details

    • adjustQuery

      public org.opensearch.client.opensearch._types.query_dsl.BoolQuery.Builder adjustQuery(org.opensearch.client.opensearch._types.query_dsl.BoolQuery.Builder queryBuilder, ExecutionContext<DATA,PLAN> context)
    • adjustSearchRequest

      public void adjustSearchRequest(org.opensearch.client.opensearch.core.SearchRequest.Builder searchRequestBuilder, org.opensearch.client.opensearch._types.query_dsl.Query baseQuery, ExecutionContext<DATA,PLAN> context)
    • createAggregation

      public abstract Map<String,org.opensearch.client.opensearch._types.aggregations.Aggregation> createAggregation(org.opensearch.client.opensearch._types.query_dsl.Query baseQuery, ExecutionContext<DATA,PLAN> context)
    • retrieveQueryResult

      public CompositeCommandResult retrieveQueryResult(org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, ExecutionContext<DATA,PLAN> executionContext)
    • getMinMaxStats

      public Optional<MinMaxStatDto> getMinMaxStats(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). It defaults to an empty result and needs to get overridden when applicable.
      Parameters:
      context - command execution context to perform the min max retrieval with
      baseQuery - filtering query on which data to perform the min max retrieval
      Returns:
      min and max value range for the value grouped on by
    • getIndexNames

      protected abstract String[] getIndexNames(ExecutionContext<DATA,PLAN> context)
    • addQueryResult

      protected abstract void addQueryResult(CompositeCommandResult compositeCommandResult, org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, ExecutionContext<DATA,PLAN> executionContext)
    • getDistributedByInterpreter

      protected abstract DistributedByInterpreterOS<DATA,PLAN> getDistributedByInterpreter()
    • getViewInterpreter

      protected abstract ViewInterpreterOS<DATA,PLAN> getViewInterpreter()