Class TenorExpandStringDebug
- java.lang.Object
-
- com.quartetfs.biz.pivot.postprocessing.impl.AAdvancedPostProcessor<OutputType>
-
- com.quartetfs.biz.pivot.postprocessing.impl.ABasicPostProcessor<String>
-
- com.activeviam.risk.core.postprocessor.impl.TenorExpandStringDebug
-
- All Implemented Interfaces:
ITenorUtilAware
,com.quartetfs.biz.pivot.postprocessing.IAggregatedMeasureAware
,com.quartetfs.biz.pivot.postprocessing.IBasicPostProcessor<String>
,com.quartetfs.biz.pivot.postprocessing.IEvaluator<String>
,com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor<String>
,com.quartetfs.biz.pivot.postprocessing.IPostProcessor<String>
,com.quartetfs.fwk.types.IExtendedPluginValue
,Serializable
@QuartetExtendedPluginValue(intf=com.quartetfs.biz.pivot.postprocessing.IPostProcessor.class, key="TENOR_EXPAND_DEBUG_STRING") public class TenorExpandStringDebug extends com.quartetfs.biz.pivot.postprocessing.impl.ABasicPostProcessor<String> implements ITenorUtilAware
Post-processor used to expand a sensitivity measure along the tenor hierarchy- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
BUCKET_TYPE
protected BucketType
bucketType
static String
PLUGIN_KEY
static String
SENSITIVITY_NAME_LEVEL
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo
tenorLevelInfo
protected ITenorUtil
tenorUtil
-
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
-
Fields inherited from interface com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor
DEFAULT_PARTITIONING_ON_RANGE_LEVELS
-
Fields inherited from interface com.quartetfs.biz.pivot.postprocessing.IPostProcessor
CONTINUOUS_QUERY_HANDLER_KEYS, IS_PARTITIONED_ON_RANGE_LEVELS_PROPERTY, SEPARATOR, UNDERLYING_MEASURES
-
Fields inherited from interface com.activeviam.risk.core.dates.ITenorUtilAware
PROPERTY_NAME
-
-
Constructor Summary
Constructors Constructor Description TenorExpandStringDebug(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 String
evaluate(com.quartetfs.biz.pivot.ILocation leafLocation, Object[] underlyingMeasures)
There is only one underlying measure here: the String[] that we want to expand.static Function<com.activeviam.desc.build.ICanStartBuildingMeasures,com.activeviam.desc.build.IHasAtLeastOneMeasure>
getPostProcessorDescription(String measureName, String underlyingMeasure, String tenorLevel, BucketType bucketType, String sensitivityNameLvl, String formatter, String folder)
String
getType()
void
init(Properties properties)
Two custom properties need to be present in the configuration of the post-processor: BUCKET_TYPE: its value is the string representing the bucket type, e.g.
"TENOR_INPUT" SENSITIVITY_NAME_LEVEL: its value is the string representing the sensitivity name level, e.g.
"SensitivityName@Sensitivity@Sensitivities" On top of those custom properties the analysisLevels property needs to be defined for the tenor level since that level is part of an analysis hierarchy, e.g.
"Tenor@Tenors@Risk"static com.activeviam.copper.api.CopperMeasure
measure(com.activeviam.copper.api.CopperMeasure underlyingMeasure, String tenorLevel, BucketType bucketType, String sensitivityNameLvl)
void
setTenorUtil(ITenorUtil tenorUtil)
Set the implementation ofITenorUtil
-
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
-
BUCKET_TYPE
public static final String BUCKET_TYPE
- See Also:
- Constant Field Values
-
SENSITIVITY_NAME_LEVEL
public static final String SENSITIVITY_NAME_LEVEL
- See Also:
- Constant Field Values
-
tenorLevelInfo
protected com.quartetfs.biz.pivot.cube.hierarchy.ILevelInfo tenorLevelInfo
-
tenorUtil
protected ITenorUtil tenorUtil
-
bucketType
protected BucketType bucketType
-
-
Constructor Detail
-
TenorExpandStringDebug
public TenorExpandStringDebug(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 underlyingMeasure, String tenorLevel, BucketType bucketType, String sensitivityNameLvl, String formatter, String folder)
- Parameters:
measureName
- measure nameunderlyingMeasure
- underlying measuretenorLevel
- Level that holds the tenorbucketType
- The type of bucket that we are usingsensitivityNameLvl
- sensitivity name levelformatter
- formatterfolder
- folder- Returns:
- measure builder
-
measure
public static com.activeviam.copper.api.CopperMeasure measure(com.activeviam.copper.api.CopperMeasure underlyingMeasure, String tenorLevel, BucketType bucketType, String sensitivityNameLvl)
- Parameters:
underlyingMeasure
- underlying measuretenorLevel
- Level that holds the tenorbucketType
- The type of bucket that we are usingsensitivityNameLvl
- sensitivity name level- Returns:
- measure
-
init
public void init(Properties properties) throws com.quartetfs.fwk.QuartetException
Two custom properties need to be present in the configuration of the post-processor:- BUCKET_TYPE: its value is the string representing the bucket type, e.g.
"TENOR_INPUT" - SENSITIVITY_NAME_LEVEL: its value is the string representing the sensitivity name level, e.g.
"SensitivityName@Sensitivity@Sensitivities"
"Tenor@Tenors@Risk"- Specified by:
init
in interfacecom.quartetfs.biz.pivot.postprocessing.IEvaluator<String>
- Specified by:
init
in interfacecom.quartetfs.biz.pivot.postprocessing.IPostProcessor<String>
- Overrides:
init
in classcom.quartetfs.biz.pivot.postprocessing.impl.ABasicPostProcessor<String>
- Throws:
com.quartetfs.fwk.QuartetException
- BUCKET_TYPE: its value is the string representing the bucket type, e.g.
-
getType
public String getType()
- Specified by:
getType
in interfacecom.quartetfs.fwk.types.IExtendedPluginValue
-
evaluate
public String evaluate(com.quartetfs.biz.pivot.ILocation leafLocation, Object[] underlyingMeasures)
There is only one underlying measure here: the String[] that we want to expand.
-
setTenorUtil
public void setTenorUtil(ITenorUtil tenorUtil)
Description copied from interface:ITenorUtilAware
Set the implementation ofITenorUtil
- Specified by:
setTenorUtil
in interfaceITenorUtilAware
- Parameters:
tenorUtil
- the implementation ofITenorUtil
-
-