Uses of Class
org.apache.druid.query.topn.TopNQuery
-
Packages that use TopNQuery Package Description org.apache.druid.query.topn org.apache.druid.query.topn.types -
-
Uses of TopNQuery in org.apache.druid.query.topn
Methods in org.apache.druid.query.topn that return TopNQuery Modifier and Type Method Description TopNQueryTopNQueryBuilder. build()TopNQueryTopNQuery. withAggregatorSpecs(List<AggregatorFactory> aggregatorSpecs)TopNQueryTopNQuery. withDimensionSpec(DimensionSpec spec)TopNQueryTopNQuery. withOverriddenContext(Map<String,Object> contextOverrides)TopNQueryTopNQuery. withPostAggregatorSpecs(List<PostAggregator> postAggs)TopNQueryTopNQuery. withQuerySegmentSpec(QuerySegmentSpec querySegmentSpec)TopNQueryTopNQuery. withThreshold(int threshold)Methods in org.apache.druid.query.topn that return types with arguments of type TopNQuery Modifier and Type Method Description CacheStrategy<Result<TopNResultValue>,Object,TopNQuery>TopNQueryQueryToolChest. getCacheStrategy(TopNQuery query)QueryToolChest<Result<TopNResultValue>,TopNQuery>TopNQueryRunnerFactory. getToolchest()Methods in org.apache.druid.query.topn with parameters of type TopNQuery Modifier and Type Method Description static booleanTopNQueryEngine. canApplyExtractionInPost(TopNQuery query)ExtractionFnwhich are one to one may have their execution deferred until as late as possible, since which value is used as the grouping key itself doesn't particularly matter.TopNQueryBuilderTopNQueryBuilder. copy(TopNQuery query)Deprecated.voidDefaultTopNQueryMetrics. dimension(TopNQuery query)voidTopNQueryMetrics. dimension(TopNQuery query)SetsgetDimensionSpec().getDimension()of the given query as dimension.CacheStrategy<Result<TopNResultValue>,Object,TopNQuery>TopNQueryQueryToolChest. getCacheStrategy(TopNQuery query)voidDefaultTopNQueryMetrics. granularity(TopNQuery query)voidTopNQueryMetrics. granularity(TopNQuery query)Sets the granularity ofBaseQuery.getGranularity()of the given query as dimension.TopNQueryMetricsTopNQueryQueryToolChest. makeMetrics(TopNQuery query)com.google.common.base.Function<Result<TopNResultValue>,Result<TopNResultValue>>TopNQueryQueryToolChest. makePostComputeManipulatorFn(TopNQuery query, MetricManipulationFn fn)com.google.common.base.Function<Result<TopNResultValue>,Result<TopNResultValue>>TopNQueryQueryToolChest. makePreComputeManipulatorFn(TopNQuery query, MetricManipulationFn fn)static TopNResultBuilderBaseTopNAlgorithm. makeResultBuilder(TopNParams params, TopNQuery query)voidDefaultTopNQueryMetrics. numComplexMetrics(TopNQuery query)voidTopNQueryMetrics. numComplexMetrics(TopNQuery query)Sets the number of "complex" metrics of the given topN query as dimension.voidDefaultTopNQueryMetrics. numMetrics(TopNQuery query)voidTopNQueryMetrics. numMetrics(TopNQuery query)Sets the number of metrics of the given topN query as dimension.voidDefaultTopNQueryMetrics. query(TopNQuery query)Sequence<Result<TopNResultValue>>TopNQueryEngine. query(TopNQuery query, StorageAdapter adapter, TopNQueryMetrics queryMetrics)Do the thing - process aStorageAdapterinto aSequenceofTopNResultValue, with one of the fineTopNAlgorithmavailable chosen based on the type of column being aggregated.RowSignatureTopNQueryQueryToolChest. resultArraySignature(TopNQuery query)Sequence<Object[]>TopNQueryQueryToolChest. resultsAsArrays(TopNQuery query, Sequence<Result<TopNResultValue>> resultSequence)Optional<Sequence<FrameSignaturePair>>TopNQueryQueryToolChest. resultsAsFrames(TopNQuery query, Sequence<Result<TopNResultValue>> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes)This returns a single frame containing the rows of the topN query's resultsvoidDefaultTopNQueryMetrics. threshold(TopNQuery query)voidTopNQueryMetrics. threshold(TopNQuery query)SetsgetThreshold()of the given query as dimension.Constructors in org.apache.druid.query.topn with parameters of type TopNQuery Constructor Description AggregateTopNMetricFirstAlgorithm(StorageAdapter storageAdapter, TopNQuery query, NonBlockingPool<ByteBuffer> bufferPool)AggregatorArrayProvider(DimensionSelector dimSelector, TopNQuery query, int cardinality, StorageAdapter storageAdapter)BaseArrayProvider(DimensionSelector dimSelector, TopNQuery query, StorageAdapter storageAdapter)HeapBasedTopNAlgorithm(StorageAdapter storageAdapter, TopNQuery query)PooledTopNAlgorithm(StorageAdapter storageAdapter, TopNQuery query, NonBlockingPool<ByteBuffer> bufferPool)TimeExtractionTopNAlgorithm(StorageAdapter storageAdapter, TopNQuery query)TopNMapFn(TopNQuery query, TopNAlgorithm topNAlgorithm)TopNQueryBuilder(TopNQuery query) -
Uses of TopNQuery in org.apache.druid.query.topn.types
Methods in org.apache.druid.query.topn.types with parameters of type TopNQuery Modifier and Type Method Description Aggregator[][]NullableNumericTopNColumnAggregatesProcessor. getRowSelector(TopNQuery query, TopNParams params, StorageAdapter storageAdapter)Aggregator[][]StringTopNColumnAggregatesProcessor. getRowSelector(TopNQuery query, TopNParams params, StorageAdapter storageAdapter)Aggregator[][]TopNColumnAggregatesProcessor. getRowSelector(TopNQuery query, TopNParams params, StorageAdapter storageAdapter)Used byHeapBasedTopNAlgorithm.longNullableNumericTopNColumnAggregatesProcessor. scanAndAggregate(TopNQuery query, Selector selector, Cursor cursor, Aggregator[][] rowSelector)longStringTopNColumnAggregatesProcessor. scanAndAggregate(TopNQuery query, DimensionSelector selector, Cursor cursor, Aggregator[][] rowSelector)longTopNColumnAggregatesProcessor. scanAndAggregate(TopNQuery query, ValueSelectorType selector, Cursor cursor, Aggregator[][] rowSelector)Used byHeapBasedTopNAlgorithm.
-