@QuartetExtendedPluginValue(intf=com.quartetfs.biz.pivot.postprocessing.IPostProcessor.class,
key="FXVector")
public class FXVector
extends com.quartetfs.biz.pivot.postprocessing.impl.ADynamicAggregationPostProcessor<com.qfs.vector.IVector,com.qfs.vector.IVector>
implements IPostProcessorPartitioningManagerAware
| Modifier and Type | Field and Description |
|---|---|
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo |
currencyLevelInfo
currency level info
|
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo |
dateLevelInfo |
protected IFxRates |
fxRates |
protected List<com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo> |
fxRatesLevelInfo |
protected IPostProcessorPartitioningManager |
partitioningManager |
protected IPostProcessorPartitioningManager.Factory |
partitioningManagerFactory |
static String |
PLUGIN_KEY
post processor plugin key
|
AGGREGATION_FUNCTION, aggregationFunction, DYNAMIC_AGGREGATION_POST_PROCESSOR_PREFETCHER, hierarchiesInfo, isPartitionedOnRangeLevels, LEAF_LEVELS, LEAF_TYPE, leafLevelsInfo, leafType, partitioningLevelsInfoaggregatedMeasureName, ANALYSIS_LEVELS_PROPERTY, analysisLevelsToExpand, continuousQueryHandlerKeys, derivedContextDependencies, evaluator, EVALUATOR, explicitContextDependencies, logger, measuresProvider, name, OUTPUT_TYPE, outputType, pivot, prefetchers, PRINT_TIMINGS, printTimings, properties, underlyingMeasuresPROPERTY_NAME| Constructor and Description |
|---|
FXVector(String name,
com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected com.qfs.vector.IVector |
evaluateLeaf(com.quartetfs.biz.pivot.ILocation leafLocation,
Object[] underlyingMeasures)
Perform the evaluation of the post processor on a leaf (as defined in the properties).
|
static com.quartetfs.biz.pivot.definitions.IPostProcessorDescription |
getPostProcessorDescription(Properties env,
String measureName,
String underlyingMeasures,
String folder,
boolean visible,
String currencyLevelProperty)
The postprocessor definition for FX conversion with a vector underlying measure
|
protected Double |
getRate(LocalDate date,
String currency,
String refCurrency,
List<Object> leafCoordinates) |
String |
getType() |
void |
init(Properties properties)
post processor initialization
|
void |
setFxRates(IFxRates fxRates) |
void |
setPartitioningLevels(com.quartetfs.biz.pivot.ILocation location,
Collection<com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo> partitioningLevels) |
void |
setPartitioningManagerFactory(IPostProcessorPartitioningManager.Factory partitioningManagerFactory) |
createLeafEvaluationProcedure, evaluateLeafcheckLeafType, checkPrefetchers, compute, computeLeafType, computeLeafTypeFromGenericType, computePartitioningLevels, computePrefetchFilter, createAggregationFunction, createPrefetchers, getAggregationFunction, getHierarchiesInfo, getLeafLevelsInfo, getLeafType, getTypeFromLiteralType, handleNoLeafLevel, initializeLeafLevels, initializeUnderlyingMeasures, reduce, reduceLeavesAndContribute, retrieveLeaves, supportsAnalysisLevelsaddContextDependency, 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, toStringpublic static final String PLUGIN_KEY
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo currencyLevelInfo
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo dateLevelInfo
protected List<com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo> fxRatesLevelInfo
protected IFxRates fxRates
protected IPostProcessorPartitioningManager.Factory partitioningManagerFactory
protected IPostProcessorPartitioningManager partitioningManager
public FXVector(String name, com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
name - namecreationContext - creationContextpublic static com.quartetfs.biz.pivot.definitions.IPostProcessorDescription getPostProcessorDescription(Properties env, String measureName, String underlyingMeasures, String folder, boolean visible, String currencyLevelProperty)
env - The properties to help construct the definitionmeasureName - The name of the measureunderlyingMeasures - The underlying measuresfolder - The folder to put this measure invisible - The visibility of this measurecurrencyLevelProperty - The currency level to use in the conversionpublic void setFxRates(IFxRates fxRates)
public void setPartitioningManagerFactory(IPostProcessorPartitioningManager.Factory partitioningManagerFactory)
setPartitioningManagerFactory in interface IPostProcessorPartitioningManagerAwarepublic void init(Properties properties) throws com.quartetfs.fwk.QuartetException
init in interface com.quartetfs.biz.pivot.postprocessing.IPostProcessor<com.qfs.vector.IVector>init in class com.quartetfs.biz.pivot.postprocessing.impl.ABaseDynamicAggregationPostProcessor<com.qfs.vector.IVector,com.qfs.vector.IVector>com.quartetfs.fwk.QuartetExceptionpublic void setPartitioningLevels(com.quartetfs.biz.pivot.ILocation location,
Collection<com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo> partitioningLevels)
setPartitioningLevels in interface com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor<com.qfs.vector.IVector>setPartitioningLevels in interface com.quartetfs.biz.pivot.postprocessing.IPostProcessor<com.qfs.vector.IVector>setPartitioningLevels in class com.quartetfs.biz.pivot.postprocessing.impl.ABaseDynamicAggregationPostProcessor<com.qfs.vector.IVector,com.qfs.vector.IVector>protected com.qfs.vector.IVector evaluateLeaf(com.quartetfs.biz.pivot.ILocation leafLocation,
Object[] underlyingMeasures)
evaluateLeaf in class com.quartetfs.biz.pivot.postprocessing.impl.ADynamicAggregationPostProcessor<com.qfs.vector.IVector,com.qfs.vector.IVector>protected Double getRate(LocalDate date, String currency, String refCurrency, List<Object> leafCoordinates)
public String getType()
getType in interface com.quartetfs.fwk.types.IExtendedPluginValueCopyright © 2019. All rights reserved.