public class TopNNumericResultBuilder extends Object implements TopNResultBuilder
Constructor and Description |
---|
TopNNumericResultBuilder(org.joda.time.DateTime timestamp,
DimensionSpec dimSpec,
String metricName,
int threshold,
Comparator comparator,
List<AggregatorFactory> aggFactories,
List<PostAggregator> postAggs) |
Modifier and Type | Method and Description |
---|---|
TopNResultBuilder |
addEntry(DimensionAndMetricValueExtractor dimensionAndMetricValueExtractor) |
TopNNumericResultBuilder |
addEntry(String dimName,
Object dimValIndex,
Object[] metricVals) |
Result<TopNResultValue> |
build() |
Iterator<DimValHolder> |
getTopNIterator() |
public TopNNumericResultBuilder(org.joda.time.DateTime timestamp, DimensionSpec dimSpec, String metricName, int threshold, Comparator comparator, List<AggregatorFactory> aggFactories, List<PostAggregator> postAggs)
public TopNNumericResultBuilder addEntry(String dimName, Object dimValIndex, Object[] metricVals)
addEntry
in interface TopNResultBuilder
public TopNResultBuilder addEntry(DimensionAndMetricValueExtractor dimensionAndMetricValueExtractor)
addEntry
in interface TopNResultBuilder
public Iterator<DimValHolder> getTopNIterator()
getTopNIterator
in interface TopNResultBuilder
public Result<TopNResultValue> build()
build
in interface TopNResultBuilder
Copyright © 2011–2015. All rights reserved.