Package com.activeviam.risk.starter
Class CubeLevelAdjustmentPostProcessor
- java.lang.Object
-
- com.quartetfs.biz.pivot.postprocessing.impl.AAdvancedPostProcessor<OutputType>
-
- com.quartetfs.biz.pivot.postprocessing.impl.ABasicPostProcessor<Object>
-
- com.activeviam.signoff.adjustments.core.postprocessor.impl.ACubeLevelAdjustmentPostProcessor
-
- com.activeviam.risk.starter.CubeLevelAdjustmentPostProcessor
-
- All Implemented Interfaces:
com.quartetfs.biz.pivot.postprocessing.IAggregatedMeasureAware
,com.quartetfs.biz.pivot.postprocessing.IBasicPostProcessor<Object>
,com.quartetfs.biz.pivot.postprocessing.IEvaluator<Object>
,com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor<Object>
,com.quartetfs.biz.pivot.postprocessing.IPostProcessor<Object>
,com.quartetfs.fwk.types.IExtendedPluginValue
,Serializable
@QuartetExtendedPluginValue(intf=com.quartetfs.biz.pivot.postprocessing.IPostProcessor.class, key="CUBE_LEVEL_ADJUSTMENT") public class CubeLevelAdjustmentPostProcessor extends com.activeviam.signoff.adjustments.core.postprocessor.impl.ACubeLevelAdjustmentPostProcessor
Post-processor that handles cube-level adjustments by performing look-ups in the datastore based on the location digest- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected IFXRates
fxRates
static String
PLUGIN_KEY
-
Fields inherited from class com.activeviam.signoff.adjustments.core.postprocessor.impl.ACubeLevelAdjustmentPostProcessor
AS_OF_DATE_LEVEL_DESCRIPTION, asOfDateHierarchyInfo, asOfDateLevelInfo, COMMA, compiledLookUpQuery, DATABASE_ASOFDATE_FORMAT, datastore, dbAsOfDatePattern, DOMAIN_HIERARCHIES_DESCRIPTIONS, domainHierachiesInfo, EXCLUDED_HIERARCHIES_DESCRIPTIONS, excludedHierachiesInfo
-
Fields inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ABasicPostProcessor
BASIC_POST_PROCESSOR_PREFETCHER, isPartitionedOnRangeLevels
-
Fields inherited from class com.quartetfs.biz.pivot.postprocessing.impl.AAdvancedPostProcessor
aggregatedMeasureName, ANALYSIS_LEVELS_PROPERTY, analysisLevelsToExpand, continuousQueryHandlerKeys, derivedContextDependencies, evaluator, EVALUATOR, explicitContextDependencies, logger, measuresProvider, name, OUTPUT_TYPE, outputType, pivot, prefetchers, PRINT_TIMINGS, printTimings, properties, underlyingMeasures
-
-
Constructor Summary
Constructors Constructor Description CubeLevelAdjustmentPostProcessor(String name, com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
Constructor
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getFXRate(LocalDate date, String currency, String refCurrency, String marketDataSet, com.quartetfs.biz.pivot.ILocation location)
String
getMarketDataSet()
static Double
getRate(com.quartetfs.biz.pivot.query.IQueryCache queryCache, com.qfs.store.IDatastoreVersion datastore, IFXRates fxRates, LocalDate date, String currency, String refCurrency, String marketDataSet, com.quartetfs.biz.pivot.IActivePivot activePivot, List<Object> leafCoordinates)
Double
getRate(LocalDate date, String currency, String refCurrency, String marketDataSet, List<Object> leafCoordinates)
String
getReferenceCurrency()
String
getType()
void
init(Properties properties)
void
setFxRates(IFXRates fxRates)
-
Methods inherited from class com.activeviam.signoff.adjustments.core.postprocessor.impl.ACubeLevelAdjustmentPostProcessor
compileQuery, evaluate, getDatastore, setDatastore
-
Methods inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ABasicPostProcessor
checkPrefetchers, compute, computePrefetchFilter, createPrefetchers, createProcedure, evaluate, initializeUnderlyingMeasures, reduce, setPartitioningLevels, supportsAnalysisLevels
-
Methods inherited from class com.quartetfs.biz.pivot.postprocessing.impl.AAdvancedPostProcessor
addContextDependency, checkInterruption, checkOutputType, computeNamePath, computeOutputType, createEvaluator, expandResult, getActivePivot, getContext, getContextDependencies, getContinuousQueryHandlerKeys, getCurrentMeasure, getDatastoreVersion, getDerivedContextDependencies, getExpansionProcedure, getGenericOutputType, getMeasuresProvider, getName, getOutputType, getOutputTypeFromGenericClassParameter, getOutputTypeFromProperties, getPrefetchers, getProperties, getQueryCache, getTypeFromClass, handleCircularDependency, handleNotSupportedAnalysisLevels, handleUnknownUnderlyingMeasure, hideEvaluator, initializeContinuousQueryHandlerKeys, removeAnalysisLevelsFromFilter, restrictLocationAnalysisLevels, retrieveAnalysisLevelsToExpand, retrieveNamedPrefetchAggregatesWithAnalysisLevels, retrievePrefetchAggregates, retrievePrefetchAggregatesWithAnalysisLevels, setAggregatedMeasureName, toString
-
-
-
-
Field Detail
-
PLUGIN_KEY
public static final String PLUGIN_KEY
- See Also:
- Constant Field Values
-
fxRates
protected IFXRates fxRates
-
-
Constructor Detail
-
CubeLevelAdjustmentPostProcessor
public CubeLevelAdjustmentPostProcessor(String name, com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
Constructor- Parameters:
name
- The name of the post-processorcreationContext
- Thecreation context
of this post-processor.
-
-
Method Detail
-
init
public void init(Properties properties) throws com.quartetfs.fwk.QuartetException
- Specified by:
init
in interfacecom.quartetfs.biz.pivot.postprocessing.IEvaluator<Object>
- Specified by:
init
in interfacecom.quartetfs.biz.pivot.postprocessing.IPostProcessor<Object>
- Overrides:
init
in classcom.activeviam.signoff.adjustments.core.postprocessor.impl.ACubeLevelAdjustmentPostProcessor
- Throws:
com.quartetfs.fwk.QuartetException
-
getFXRate
public Double getFXRate(LocalDate date, String currency, String refCurrency, String marketDataSet, com.quartetfs.biz.pivot.ILocation location)
- Specified by:
getFXRate
in classcom.activeviam.signoff.adjustments.core.postprocessor.impl.ACubeLevelAdjustmentPostProcessor
-
getReferenceCurrency
public String getReferenceCurrency()
- Specified by:
getReferenceCurrency
in classcom.activeviam.signoff.adjustments.core.postprocessor.impl.ACubeLevelAdjustmentPostProcessor
-
getMarketDataSet
public String getMarketDataSet()
- Specified by:
getMarketDataSet
in classcom.activeviam.signoff.adjustments.core.postprocessor.impl.ACubeLevelAdjustmentPostProcessor
-
getRate
public Double getRate(LocalDate date, String currency, String refCurrency, String marketDataSet, List<Object> leafCoordinates)
-
getRate
public static Double getRate(com.quartetfs.biz.pivot.query.IQueryCache queryCache, com.qfs.store.IDatastoreVersion datastore, IFXRates fxRates, LocalDate date, String currency, String refCurrency, String marketDataSet, com.quartetfs.biz.pivot.IActivePivot activePivot, List<Object> leafCoordinates)
-
setFxRates
public void setFxRates(IFXRates fxRates)
-
getType
public String getType()
-
-