public class InvertedTopNMetricSpec extends Object implements TopNMetricSpec
Constructor and Description |
---|
InvertedTopNMetricSpec(TopNMetricSpec delegate) |
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) |
TopNMetricSpec |
getDelegate() |
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) |
void |
verifyPreconditions(List<AggregatorFactory> aggregatorSpecs,
List<PostAggregator> postAggregatorSpecs) |
public InvertedTopNMetricSpec(TopNMetricSpec delegate)
public void verifyPreconditions(List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs)
verifyPreconditions
in interface TopNMetricSpec
public TopNMetricSpec getDelegate()
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.