public abstract class RawAggregationMetricMaker extends MetricMaker
metrics, NO_OP_MAP_PROVIDER, NO_OP_MAPPER
Constructor and Description |
---|
RawAggregationMetricMaker(MetricDictionary metrics,
BiFunction<String,String,Aggregation> aggregationFactory)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
assertDependentMetricsExist(List<String> dependentMetrics)
Aggregation columns are not expected to be in the metric Dictionary.
|
protected int |
getDependentMetricsRequired()
Get the number of dependent metrics the maker requires for making the metric.
|
protected ResultSetMapper |
getResultSetMapper(String metricName)
The result set mapper associated with this metric.
|
protected LogicalMetric |
makeInner(LogicalMetricInfo logicalMetricInfo,
List<String> dependentMetrics)
Delegated to for actually making the metric.
|
assertRequiredDependentMetricCount, getDependentQuery, getMergedQuery, getNumericField, getNumericField, getSketchField, getSketchField, make, make, make, makeInner
public RawAggregationMetricMaker(MetricDictionary metrics, BiFunction<String,String,Aggregation> aggregationFactory)
metrics
- A mapping of metric names to the corresponding LogicalMetrics. Used to resolve metric names
when making the logical metric.aggregationFactory
- Produce an aggregation from a name and field nameprotected void assertDependentMetricsExist(List<String> dependentMetrics)
assertDependentMetricsExist
in class MetricMaker
dependentMetrics
- List of dependent metrics needed to checkprotected LogicalMetric makeInner(LogicalMetricInfo logicalMetricInfo, List<String> dependentMetrics)
MetricMaker
makeInner
in class MetricMaker
logicalMetricInfo
- Logical metric info providerdependentMetrics
- Metrics this metric depends onprotected int getDependentMetricsRequired()
MetricMaker
getDependentMetricsRequired
in class MetricMaker
protected ResultSetMapper getResultSetMapper(String metricName)
metricName
- The metric name modified by this result set mapper (if any)Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.