public class NumericTopNMetricSpec extends Object implements TopNMetricSpec
Constructor and Description |
---|
NumericTopNMetricSpec(String metric) |
Modifier and Type | Method and Description |
---|---|
boolean |
canBeOptimizedUnordered() |
<T> TopNMetricSpecBuilder<T> |
configureOptimizer(TopNMetricSpecBuilder<T> builder) |
boolean |
equals(Object o) |
byte[] |
getCacheKey() |
Comparator |
getComparator(List<AggregatorFactory> aggregatorSpecs,
List<PostAggregator> postAggregatorSpecs) |
String |
getMetric() |
String |
getMetricName(DimensionSpec dimSpec) |
TopNResultBuilder |
getResultBuilder(org.joda.time.DateTime timestamp,
DimensionSpec dimSpec,
int threshold,
Comparator comparator,
List<AggregatorFactory> aggFactories,
List<PostAggregator> postAggs) |
int |
hashCode() |
void |
initTopNAlgorithmSelector(TopNAlgorithmSelector selector) |
String |
toString() |
void |
verifyPreconditions(List<AggregatorFactory> aggregatorSpecs,
List<PostAggregator> postAggregatorSpecs) |
public NumericTopNMetricSpec(String metric)
public void verifyPreconditions(List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs)
verifyPreconditions
in interface TopNMetricSpec
public String getMetric()
public Comparator getComparator(List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs)
getComparator
in interface TopNMetricSpec
public TopNResultBuilder getResultBuilder(org.joda.time.DateTime timestamp, DimensionSpec dimSpec, int threshold, Comparator comparator, List<AggregatorFactory> aggFactories, List<PostAggregator> postAggs)
getResultBuilder
in interface TopNMetricSpec
public byte[] getCacheKey()
getCacheKey
in interface TopNMetricSpec
public <T> TopNMetricSpecBuilder<T> configureOptimizer(TopNMetricSpecBuilder<T> builder)
configureOptimizer
in interface TopNMetricSpec
public void initTopNAlgorithmSelector(TopNAlgorithmSelector selector)
initTopNAlgorithmSelector
in interface TopNMetricSpec
public String getMetricName(DimensionSpec dimSpec)
getMetricName
in interface TopNMetricSpec
public boolean canBeOptimizedUnordered()
canBeOptimizedUnordered
in interface TopNMetricSpec
Copyright © 2011–2015. All rights reserved.