public class ConstantMaker extends MetricMaker
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
metrics, NO_OP_MAP_PROVIDER, NO_OP_MAPPER| Constructor and Description |
|---|
ConstantMaker(MetricDictionary metricDictionary)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getDependentMetricsRequired()
Get the number of dependent metrics the maker requires for making the metric.
|
LogicalMetric |
make(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics)
Make the metric.
|
protected LogicalMetric |
makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics)
Delegated to for actually making the metric.
|
assertDependentMetricsExist, assertRequiredDependentMetricCount, getDependentQuery, getMergedQuery, getNumericField, getNumericField, getSketchField, getSketchField, make, make, makeInnerpublic ConstantMaker(MetricDictionary metricDictionary)
metricDictionary - Dictionary from which to look up dependent metricspublic LogicalMetric make(LogicalMetricInfo logicalMetricInfo, List<String> dependentMetrics)
MetricMakerThis method also sanity-checks the dependent metrics to make sure that they are metrics we have built and are in the metric dictionary.
Also sanity-checks that the number of dependent metrics are correct for the maker.
make in class MetricMakerlogicalMetricInfo - Logical metric info providerdependentMetrics - Metrics this metric depends onprotected LogicalMetric makeInner(LogicalMetricInfo logicalMetricInfo, List<String> dependentMetrics)
MetricMakermakeInner in class MetricMakerlogicalMetricInfo - Logical metric info providerdependentMetrics - Metrics this metric depends onprotected int getDependentMetricsRequired()
MetricMakergetDependentMetricsRequired in class MetricMakerCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.