Class ScalarMarketDataPostProcessor

  • All Implemented Interfaces:
    ICustomParametersAware, IMarketDataRetrievalServiceAware, com.quartetfs.biz.pivot.postprocessing.IAggregatedMeasureAware, com.quartetfs.biz.pivot.postprocessing.IBasicPostProcessor<Double>, com.quartetfs.biz.pivot.postprocessing.IEvaluator<Double>, com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor<Double>, com.quartetfs.biz.pivot.postprocessing.IPostProcessor<Double>, com.quartetfs.fwk.types.IExtendedPluginValue, Serializable

    @QuartetExtendedPluginValue(intf=com.quartetfs.biz.pivot.postprocessing.IPostProcessor.class,
                                key="SCALAR_MARKET_DATA")
    public class ScalarMarketDataPostProcessor
    extends AMarketDataPostProcessor<Double>
    Post-processor used to get market data values for current and previous dates. Works with single and bi-dimensional sensitivities.
    See Also:
    Serialized Form
    • Constructor Detail

      • ScalarMarketDataPostProcessor

        public ScalarMarketDataPostProcessor​(String name,
                                             com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
    • Method Detail

      • getPostProcessorDescription

        public static Function<com.activeviam.desc.build.ICanStartBuildingMeasures,​com.activeviam.desc.build.IHasAtLeastOneMeasure> getPostProcessorDescription​(String measureName,
                                                                                                                                                                      String underlyingMeasures,
                                                                                                                                                                      String asOfDateLevel,
                                                                                                                                                                      String marketDataSetLevel,
                                                                                                                                                                      String riskFactorLevel,
                                                                                                                                                                      String riskClassLevel,
                                                                                                                                                                      String[][] levels,
                                                                                                                                                                      String dateInfo,
                                                                                                                                                                      String sensitivityName,
                                                                                                                                                                      String marketDataStoreName,
                                                                                                                                                                      BucketType[] bucketTypes,
                                                                                                                                                                      Boolean interpolation,
                                                                                                                                                                      IMarketDataRetrievalService.MarketType typeOfMarketData,
                                                                                                                                                                      String interpolationDebugStringIdentifier,
                                                                                                                                                                      String formatter,
                                                                                                                                                                      String folder)
        This will create a PP configuration
        Parameters:
        measureName - Name of the postprocessor
        underlyingMeasures - The underlying measure
        asOfDateLevel - Level containing the asOfSDate
        marketDataSetLevel - Level containing the market data set level
        riskFactorLevel - risk factor level
        riskClassLevel - risk class level
        levels - [primary, secondary] pillar levels
        dateInfo - date info
        sensitivityName - sensitivity name
        marketDataStoreName - market data store name
        bucketTypes - bucket types
        interpolation - force interpolation or not, can be null, for configured interpolation
        typeOfMarketData - type of the returned market data : absolute, relative, raw(as is)
        interpolationDebugStringIdentifier - internal identifier used in the query cache. The keys in the query cache that will be used have the following pattern: measure name + identifier + location
        formatter - formatter
        folder - Folder name of the metric, if not provider aka null measure is invisible
        Returns:
        measure builder
      • measure

        public static com.activeviam.copper.api.CopperMeasure measure​(com.activeviam.copper.api.CopperMeasure underlyingMeasures,
                                                                      String asOfDateLevel,
                                                                      String marketDataSetLevel,
                                                                      String riskFactorLevel,
                                                                      String riskClassLevel,
                                                                      String[][] levels,
                                                                      String dateInfo,
                                                                      String sensitivityName,
                                                                      String marketDataStoreName,
                                                                      BucketType[] bucketTypes,
                                                                      Boolean interpolation,
                                                                      IMarketDataRetrievalService.MarketType typeOfMarketData,
                                                                      String interpolationDebugStringIdentifier)
        This will create a PP configuration
        Parameters:
        underlyingMeasures - The underlying measure
        asOfDateLevel - Level containing the asOfSDate
        marketDataSetLevel - Level containing the market data set level
        riskFactorLevel - risk factor level
        riskClassLevel - risk class level
        levels - [primary, secondary] pillar levels
        dateInfo - date info
        sensitivityName - sensitivity name
        marketDataStoreName - market data store name
        bucketTypes - bucket types
        interpolation - force interpolation or not, can be null, for configured interpolation
        typeOfMarketData - type of the returned market data : absolute, relative, raw(as is)
        interpolationDebugStringIdentifier - internal identifier used in the query cache. The keys in the query cache that will be used have the following pattern: measure name + identifier + location
        Returns:
        measure builder
      • init

        public void init​(Properties properties)
                  throws com.quartetfs.fwk.QuartetException
        Specified by:
        init in interface com.quartetfs.biz.pivot.postprocessing.IEvaluator<Double>
        Specified by:
        init in interface com.quartetfs.biz.pivot.postprocessing.IPostProcessor<Double>
        Overrides:
        init in class AMarketDataPostProcessor<Double>
        Throws:
        com.quartetfs.fwk.QuartetException
      • getType

        public String getType()