Package org.apache.druid.query.topn
Class LexicographicTopNMetricSpec
java.lang.Object
org.apache.druid.query.topn.LexicographicTopNMetricSpec
- All Implemented Interfaces:
Cacheable,TopNMetricSpec
- Direct Known Subclasses:
AlphaNumericTopNMetricSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean<T> TopNMetricSpecBuilder<T>configureOptimizer(TopNMetricSpecBuilder<T> builder) booleanbyte[]Get a byte array used as a cache key.getComparator(List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs) getMetricName(DimensionSpec dimSpec) getResultBuilder(org.joda.time.DateTime timestamp, DimensionSpec dimSpec, int threshold, Comparator comparator, List<AggregatorFactory> aggFactories, List<PostAggregator> postAggs) inthashCode()voidtoString()voidverifyPreconditions(List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs)
-
Constructor Details
-
LexicographicTopNMetricSpec
-
-
Method Details
-
verifyPreconditions
public void verifyPreconditions(List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs) - Specified by:
verifyPreconditionsin interfaceTopNMetricSpec
-
getPreviousStop
-
getComparator
public Comparator getComparator(List<AggregatorFactory> aggregatorSpecs, List<PostAggregator> postAggregatorSpecs) - Specified by:
getComparatorin interfaceTopNMetricSpec
-
getResultBuilder
public TopNResultBuilder getResultBuilder(org.joda.time.DateTime timestamp, DimensionSpec dimSpec, int threshold, Comparator comparator, List<AggregatorFactory> aggFactories, List<PostAggregator> postAggs) - Specified by:
getResultBuilderin interfaceTopNMetricSpec
-
getCacheKey
public byte[] getCacheKey()Description copied from interface:CacheableGet a byte array used as a cache key.- Specified by:
getCacheKeyin interfaceCacheable- Returns:
- bytes to be used as cache key - or null if this object should not be cached.
-
configureOptimizer
- Specified by:
configureOptimizerin interfaceTopNMetricSpec
-
initTopNAlgorithmSelector
- Specified by:
initTopNAlgorithmSelectorin interfaceTopNMetricSpec
-
getMetricName
- Specified by:
getMetricNamein interfaceTopNMetricSpec
-
canBeOptimizedUnordered
public boolean canBeOptimizedUnordered()- Specified by:
canBeOptimizedUnorderedin interfaceTopNMetricSpec
-
toString
-
equals
-
hashCode
public int hashCode()
-