Class DataCountPostProcessor
- java.lang.Object
-
- com.quartetfs.biz.pivot.postprocessing.impl.AAdvancedPostProcessor<OutputT>
-
- All Implemented Interfaces:
com.quartetfs.biz.pivot.postprocessing.IAggregatedMeasureAware
,com.quartetfs.biz.pivot.postprocessing.IPartitionedPostProcessor<Long>
,com.quartetfs.biz.pivot.postprocessing.IPostProcessor<Long>
,com.quartetfs.fwk.types.IExtendedPluginValue
,Serializable
public class DataCountPostProcessor extends com.quartetfs.biz.pivot.postprocessing.impl.LeafCountPostProcessor
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.quartetfs.biz.pivot.postprocessing.impl.LeafCountPostProcessor
hierarchyIndexes, levelOrdinals, PLUGIN_KEY, SKIP_DATAMEMBERS_PROPERTY, skipDataMembers
-
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
-
-
Constructor Summary
Constructors Constructor Description DataCountPostProcessor(String name, com.quartetfs.biz.pivot.cube.hierarchy.measures.IPostProcessorCreationContext creationContext)
Constructor
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.activeviam.copper.api.CopperMeasure
measure(String underlyingMeasure, String levelToCount, String[] analysisLevels)
This post-processor computes the number of distinct risk classes present for a given locationprotected static String
toStringList(String[] levels)
-
Methods inherited from class com.quartetfs.biz.pivot.postprocessing.impl.LeafCountPostProcessor
createLeafEvaluationProcedure, getType, init
-
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
-
-
-
-
Constructor Detail
-
DataCountPostProcessor
public DataCountPostProcessor(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
-
measure
public static com.activeviam.copper.api.CopperMeasure measure(String underlyingMeasure, String levelToCount, String[] analysisLevels)
This post-processor computes the number of distinct risk classes present for a given location- Parameters:
underlyingMeasure
- The measure used as underlying (usually it will be contributors.COUNT)levelToCount
- The risk class levelanalysisLevels
- The analysis levels on which the metric should be propagated- Returns:
- The distinct count on risk class
-
-