Setting up context values

This page provides a description of how we set up the default context values. The techniques employed are generic examples that can be extended, adapted and repeated for any use case that we need. In all cases, we make minimal changes to the Accelerator Reference Implementation. For more information about context values please see the ActivePivot documentation : Context Values.

The context values are defined in the configuration class ContextValueConfig within frtb-starter/src/main/java/com/activeviam/frtb/starter/cfg/impl as separate beans for each cube.

Cube Bean name
StandardisedApproachCube contextValueStandardisedApproachCube
InternalModelApproachCube contextValueInternalModelApproachCube
IMADRCCube contextValueIMADRCCube
IMADRCSummaryCube contextValueIMADRCSummaryCube
IMASummaryCube contextValueIMASummaryCube
PLCube contextValuePLCube
PLSummaryCube contextValuePLSummaryCube
StressedCalibrationCube contextValueStressedCalibrationCube
FRTBCombinedCube contextValueFRTBCombinedCube

Example

    @Bean
    public List<IContextValue> contextValuePLCube() {
        return List.of(
                QueriesTimeLimit.of(queriesTimeLimit, TimeUnit.SECONDS),
                [...]
        );
    }