Class AFXPostProcessor<Type>
- java.lang.Object
-
- com.quartetfs.biz.pivot.postprocessing.impl.AAdvancedPostProcessor<OutputType>
-
- com.quartetfs.biz.pivot.postprocessing.impl.ABaseDynamicAggregationPostProcessor<LeafType,OutputType>
-
- com.quartetfs.biz.pivot.postprocessing.impl.ADynamicAggregationPostProcessor<Type,Type>
-
- com.activeviam.risk.core.postprocessor.fxconversion.impl.AFXPostProcessor<Type>
-
- All Implemented Interfaces:
IFXRatesAware
,com.quartetfs.biz.pivot.postprocessing.IAggregatedMeasureAware
,com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor<Type>
,com.quartetfs.biz.pivot.postprocessing.IPostProcessor<Type>
,com.quartetfs.fwk.types.IExtendedPluginValue
,Serializable
- Direct Known Subclasses:
FXPostProcessor
,FXVectorPostProcessor
public abstract class AFXPostProcessor<Type> extends com.quartetfs.biz.pivot.postprocessing.impl.ADynamicAggregationPostProcessor<Type,Type> implements IFXRatesAware
Provides dynamic aggregation of values in multiple currencies, with conversion into a contextual reference currency.- Author:
- ActiveViam
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo
asOfDateLevelInfo
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo
currencyLevelInfo
static String
DATE_INFO
protected String
dateInfo
static String
DEFAULT_MAX_FALLBACK_DAYS
protected IFXRates
fxRates
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo
marketDataSetLevelInfo
static String
MAX_FALLBACK_DAYS
protected int
maxFallbackDays
static String
PREFERRED_CURRENCY_PROPERTY
protected String
preferredCurrency
-
Fields inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ABaseDynamicAggregationPostProcessor
AGGREGATION_FUNCTION, aggregationFunction, DYNAMIC_AGGREGATION_POST_PROCESSOR_PREFETCHER, hierarchiesInfo, isPartitionedOnRangeLevels, LEAF_LEVELS, LEAF_TYPE, leafLevelsInfo, leafType, partitioningLevelsInfo
-
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
-
Fields inherited from interface com.activeviam.risk.core.services.IFXRatesAware
PROPERTY_NAME
-
-
Constructor Summary
Constructors Constructor Description AFXPostProcessor(String name, com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Double
getRate(com.quartetfs.biz.pivot.ILocation leafLocation)
static Double
getRate(com.quartetfs.biz.pivot.query.IQueryCache queryCache, com.qfs.store.IDatastoreVersion datastore, IFXRates fxRates, LocalDate date, String currency, String refCurrency, com.quartetfs.biz.pivot.IActivePivot activePivot, List<Object> leafCoordinates, String marketDataSet)
protected Double
getRate(LocalDate date, String currency, String refCurrency, List<Object> leafCoordinates, String marketDataSet)
void
init(Properties properties)
This post-processor requires one property to be specified in its definition: The leafLevels property ofABaseDynamicAggregationPostProcessor
specifying the leaf levels at which this post-processor will be evaluated, in this case the AsOfDate and Currency levels. The optional preferredCurrency property can be used fix the output of this post-processor to a specific currency, overriding the currency specified by theIReferenceCurrency
context value.void
setFxRates(IFXRates fxRates)
protected LocalDate
stepDate(LocalDate date, boolean first)
-
Methods inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ADynamicAggregationPostProcessor
createLeafEvaluationProcedure, evaluateLeaf, evaluateLeaf
-
Methods inherited from class com.quartetfs.biz.pivot.postprocessing.impl.ABaseDynamicAggregationPostProcessor
checkLeafType, checkPrefetchers, compute, computeLeafType, computeLeafTypeFromGenericType, computePartitioningLevels, computePrefetchFilter, createAggregationFunction, createPrefetchers, getAggregationFunction, getHierarchiesInfo, getLeafLevelsInfo, getLeafType, getTypeFromLiteralType, handleNoLeafLevel, initializeLeafLevels, initializeUnderlyingMeasures, reduce, reduceLeavesAndContribute, retrieveLeaves, 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
-
PREFERRED_CURRENCY_PROPERTY
public static final String PREFERRED_CURRENCY_PROPERTY
- See Also:
- Constant Field Values
-
DATE_INFO
public static final String DATE_INFO
- See Also:
- Constant Field Values
-
DEFAULT_MAX_FALLBACK_DAYS
public static final String DEFAULT_MAX_FALLBACK_DAYS
- See Also:
- Constant Field Values
-
MAX_FALLBACK_DAYS
public static final String MAX_FALLBACK_DAYS
- See Also:
- Constant Field Values
-
asOfDateLevelInfo
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo asOfDateLevelInfo
-
currencyLevelInfo
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo currencyLevelInfo
-
marketDataSetLevelInfo
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo marketDataSetLevelInfo
-
preferredCurrency
protected String preferredCurrency
-
dateInfo
protected String dateInfo
-
maxFallbackDays
protected int maxFallbackDays
-
fxRates
protected IFXRates fxRates
-
-
Constructor Detail
-
AFXPostProcessor
public AFXPostProcessor(String name, com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
-
-
Method Detail
-
init
public void init(Properties properties) throws com.quartetfs.fwk.QuartetException
This post-processor requires one property to be specified in its definition:- The leafLevels property of
ABaseDynamicAggregationPostProcessor
specifying the leaf levels at which this post-processor will be evaluated, in this case the AsOfDate and Currency levels.
IReferenceCurrency
context value. - The leafLevels property of
-
getRate
protected Double getRate(com.quartetfs.biz.pivot.ILocation leafLocation)
-
getRate
protected Double getRate(LocalDate date, String currency, String refCurrency, List<Object> leafCoordinates, String marketDataSet)
-
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, com.quartetfs.biz.pivot.IActivePivot activePivot, List<Object> leafCoordinates, String marketDataSet)
-
setFxRates
public void setFxRates(IFXRates fxRates)
- Specified by:
setFxRates
in interfaceIFXRatesAware
-
-