Class ProcessDistributedByInterpreterFacadeOS
java.lang.Object
io.camunda.optimize.service.db.report.interpreter.AbstractInterpreterFacade<ProcessDistributedBy,ProcessDistributedByInterpreterOS>
io.camunda.optimize.service.db.os.report.interpreter.distributedby.process.ProcessDistributedByInterpreterFacadeOS
- All Implemented Interfaces:
DistributedByInterpreterOS<ProcessReportDataDto,,ProcessExecutionPlan> ProcessDistributedByInterpreterOS,DistributedByInterpreter<ProcessReportDataDto,ProcessExecutionPlan>
@Component
@Conditional(io.camunda.optimize.service.util.configuration.condition.OpenSearchCondition.class)
public class ProcessDistributedByInterpreterFacadeOS
extends AbstractInterpreterFacade<ProcessDistributedBy,ProcessDistributedByInterpreterOS>
implements ProcessDistributedByInterpreterOS
-
Field Summary
Fields inherited from class io.camunda.optimize.service.db.report.interpreter.AbstractInterpreterFacade
interpretersMap -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.client.opensearch._types.query_dsl.BoolQuery.BuilderadjustQuery(org.opensearch.client.opensearch._types.query_dsl.BoolQuery.Builder queryBuilder, 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) createAggregations(ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context, org.opensearch.client.opensearch._types.query_dsl.Query baseQuery) voidenrichContextWithAllExpectedDistributedByKeys(ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context, Map<String, org.opensearch.client.opensearch._types.aggregations.Aggregate> aggregations) booleanretrieveResult(org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, Map<String, org.opensearch.client.opensearch._types.aggregations.Aggregate> aggregations, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) Methods inherited from class io.camunda.optimize.service.db.report.interpreter.AbstractInterpreterFacade
interpreter
-
Constructor Details
-
ProcessDistributedByInterpreterFacadeOS
public ProcessDistributedByInterpreterFacadeOS(List<ProcessDistributedByInterpreterOS> interpreters)
-
-
Method Details
-
getSupportedDistributedBys
- Specified by:
getSupportedDistributedBysin interfaceProcessDistributedByInterpreterOS
-
createAggregations
public Map<String,org.opensearch.client.opensearch._types.aggregations.Aggregation> createAggregations(ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context, org.opensearch.client.opensearch._types.query_dsl.Query baseQuery) - Specified by:
createAggregationsin interfaceDistributedByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
retrieveResult
public List<CompositeCommandResult.DistributedByResult> retrieveResult(org.opensearch.client.opensearch.core.SearchResponse<RawResult> response, Map<String, org.opensearch.client.opensearch._types.aggregations.Aggregate> aggregations, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
retrieveResultin interfaceDistributedByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
createEmptyResult
public List<CompositeCommandResult.DistributedByResult> createEmptyResult(ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
createEmptyResultin interfaceDistributedByInterpreter<ProcessReportDataDto,ProcessExecutionPlan>
-
adjustQuery
public org.opensearch.client.opensearch._types.query_dsl.BoolQuery.Builder adjustQuery(org.opensearch.client.opensearch._types.query_dsl.BoolQuery.Builder queryBuilder, ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
adjustQueryin interfaceDistributedByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
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 interfaceDistributedByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
enrichContextWithAllExpectedDistributedByKeys
public void enrichContextWithAllExpectedDistributedByKeys(ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context, Map<String, org.opensearch.client.opensearch._types.aggregations.Aggregate> aggregations) - Specified by:
enrichContextWithAllExpectedDistributedByKeysin interfaceDistributedByInterpreterOS<ProcessReportDataDto,ProcessExecutionPlan>
-
isKeyOfNumericType
public boolean isKeyOfNumericType(ExecutionContext<ProcessReportDataDto, ProcessExecutionPlan> context) - Specified by:
isKeyOfNumericTypein interfaceDistributedByInterpreter<ProcessReportDataDto,ProcessExecutionPlan>
-