public class CardinalityMaker extends MetricMaker
metrics, NO_OP_MAP_PROVIDER, NO_OP_MAPPER
Constructor and Description |
---|
CardinalityMaker(MetricDictionary metrics,
DimensionDictionary dimensionDictionary,
boolean byRow)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assertDependentMetricsExist(List<String> dependentDimensions)
Cardinality metrics depend on dimensions not metrics.
|
protected int |
getDependentMetricsRequired()
Get the number of dependent metrics the maker requires for making the metric.
|
protected LogicalMetric |
makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentDimensions)
Delegated to for actually making the metric.
|
assertRequiredDependentMetricCount, getDependentQuery, getMergedQuery, getNumericField, getNumericField, getSketchField, getSketchField, make, make, make, makeInner
public CardinalityMaker(MetricDictionary metrics, DimensionDictionary dimensionDictionary, boolean byRow)
metrics
- Unused reference to metrics dictionarydimensionDictionary
- Dictionary to resolve dimension api names againstbyRow
- Cardinality by value or rowprotected void assertDependentMetricsExist(List<String> dependentDimensions)
assertDependentMetricsExist
in class MetricMaker
dependentDimensions
- The dimension names for this cardinality metricprotected LogicalMetric makeInner(LogicalMetricInfo logicalMetricInfo, List<String> dependentDimensions)
MetricMaker
makeInner
in class MetricMaker
logicalMetricInfo
- Logical metric info providerdependentDimensions
- Metrics this metric depends onprotected int getDependentMetricsRequired()
MetricMaker
getDependentMetricsRequired
in class MetricMaker
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.