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, makeInnerpublic 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 MetricMakerdependentDimensions - The dimension names for this cardinality metricprotected LogicalMetric makeInner(LogicalMetricInfo logicalMetricInfo, List<String> dependentDimensions)
MetricMakermakeInner in class MetricMakerlogicalMetricInfo - Logical metric info providerdependentDimensions - Metrics this metric depends onprotected int getDependentMetricsRequired()
MetricMakergetDependentMetricsRequired in class MetricMakerCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.