public class TopNLexicographicResultBuilder extends Object implements TopNResultBuilder
Constructor and Description |
---|
TopNLexicographicResultBuilder(org.joda.time.DateTime timestamp,
DimensionSpec dimSpec,
int threshold,
String previousStop,
Comparator comparator,
List<AggregatorFactory> aggFactories) |
Modifier and Type | Method and Description |
---|---|
TopNResultBuilder |
addEntry(DimensionAndMetricValueExtractor dimensionAndMetricValueExtractor) |
TopNResultBuilder |
addEntry(String dimName,
Object dimValIndex,
Object[] metricVals) |
Result<TopNResultValue> |
build() |
Iterator<DimValHolder> |
getTopNIterator() |
public TopNLexicographicResultBuilder(org.joda.time.DateTime timestamp, DimensionSpec dimSpec, int threshold, String previousStop, Comparator comparator, List<AggregatorFactory> aggFactories)
public TopNResultBuilder 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.