Class AbstractGroupByInterpreterES<DATA extends SingleReportDataDto,PLAN extends ExecutionPlan>

java.lang.Object
io.camunda.optimize.service.db.es.report.interpreter.groupby.AbstractGroupByInterpreterES<DATA,PLAN>
Direct Known Subclasses:
AbstractDecisionGroupByInterpreterES, AbstractGroupByVariableInterpreterES, AbstractProcessGroupByInterpreterES

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

    • AbstractGroupByInterpreterES

      public AbstractGroupByInterpreterES()
  • Method Details

    • adjustSearchRequest

      public void adjustSearchRequest(co.elastic.clients.elasticsearch.core.SearchRequest.Builder searchRequestBuilder, co.elastic.clients.elasticsearch._types.query_dsl.BoolQuery.Builder baseQueryBuilder, ExecutionContext<DATA,PLAN> context)
    • createAggregation

      public abstract 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)
    • retrieveQueryResult

      public CompositeCommandResult retrieveQueryResult(co.elastic.clients.elasticsearch.core.search.ResponseBody<?> response, ExecutionContext<DATA,PLAN> executionContext)
    • getMinMaxStats

      public Optional<MinMaxStatDto> getMinMaxStats(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). 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, co.elastic.clients.elasticsearch.core.search.ResponseBody<?> response, ExecutionContext<DATA,PLAN> executionContext)
    • getDistributedByInterpreter

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

      protected abstract ViewInterpreterES<DATA,PLAN> getViewInterpreter()