Uses of Class
org.apache.druid.query.topn.TopNQuery
Packages that use TopNQuery
-
Uses of TopNQuery in org.apache.druid.query.topn
Methods in org.apache.druid.query.topn that return TopNQueryModifier and TypeMethodDescriptionTopNQueryBuilder.build()TopNQuery.withAggregatorSpecs(List<AggregatorFactory> aggregatorSpecs) TopNQuery.withDimensionSpec(DimensionSpec spec) TopNQuery.withOverriddenContext(Map<String, Object> contextOverrides) TopNQuery.withPostAggregatorSpecs(List<PostAggregator> postAggs) TopNQuery.withQuerySegmentSpec(QuerySegmentSpec querySegmentSpec) TopNQuery.withThreshold(int threshold) Methods in org.apache.druid.query.topn that return types with arguments of type TopNQueryModifier and TypeMethodDescriptionTopNQueryQueryToolChest.getCacheStrategy(TopNQuery query) TopNQueryQueryToolChest.getCacheStrategy(TopNQuery query, com.fasterxml.jackson.databind.ObjectMapper objectMapper) TopNQueryRunnerFactory.getToolchest()Methods in org.apache.druid.query.topn with parameters of type TopNQueryModifier and TypeMethodDescriptionstatic 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.Deprecated.voidvoidSetsgetDimensionSpec().getDimension()of the given query as dimension.TopNQueryQueryToolChest.getCacheStrategy(TopNQuery query) TopNQueryQueryToolChest.getCacheStrategy(TopNQuery query, com.fasterxml.jackson.databind.ObjectMapper objectMapper) voidDefaultTopNQueryMetrics.granularity(TopNQuery query) voidTopNQueryMetrics.granularity(TopNQuery query) Sets the granularity ofBaseQuery.getGranularity()of the given query as dimension.static CursorBuildSpecTopNQueryEngine.makeCursorBuildSpec(TopNQuery query, QueryMetrics<?> queryMetrics) TopNQueryQueryToolChest.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.voidTopNQueryEngine.query(TopNQuery query, Segment segment, TopNQueryMetrics queryMetrics) Do the thing - process aSegmentinto aSequenceofTopNResultValue, with one of the fineTopNAlgorithmavailable chosen based on the type of column being aggregated.TopNQueryQueryToolChest.resultArraySignature(TopNQuery query) TopNQueryQueryToolChest.resultsAsArrays(TopNQuery query, Sequence<Result<TopNResultValue>> resultSequence) 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 resultsvoidvoidSetsgetThreshold()of the given query as dimension.Constructors in org.apache.druid.query.topn with parameters of type TopNQueryModifierConstructorDescriptionAggregateTopNMetricFirstAlgorithm(TopNQuery query, TopNCursorInspector cursorInspector, NonBlockingPool<ByteBuffer> bufferPool) AggregatorArrayProvider(DimensionSelector dimSelector, TopNQuery query, TopNCursorInspector cursorInspector, int cardinality) BaseArrayProvider(DimensionSelector dimSelector, TopNQuery query, TopNCursorInspector cursorInspector) HeapBasedTopNAlgorithm(TopNQuery query, TopNCursorInspector cursorInspector) PooledTopNAlgorithm(TopNQuery query, TopNCursorInspector cursorInspector, NonBlockingPool<ByteBuffer> bufferPool) TimeExtractionTopNAlgorithm(TopNQuery query, TopNCursorInspector cursorInspector) 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 TopNQueryModifier and TypeMethodDescriptionAggregator[][]NullableNumericTopNColumnAggregatesProcessor.getRowSelector(TopNQuery query, TopNParams params, TopNCursorInspector cursorInspector) Aggregator[][]StringTopNColumnAggregatesProcessor.getRowSelector(TopNQuery query, TopNParams params, TopNCursorInspector cursorInspector) Aggregator[][]TopNColumnAggregatesProcessor.getRowSelector(TopNQuery query, TopNParams params, TopNCursorInspector cursorInspector) Used byHeapBasedTopNAlgorithm.longNullableNumericTopNColumnAggregatesProcessor.scanAndAggregate(TopNQuery query, Selector selector, Cursor cursor, CursorGranularizer granularizer, Aggregator[][] rowSelector) longStringTopNColumnAggregatesProcessor.scanAndAggregate(TopNQuery query, DimensionSelector selector, Cursor cursor, CursorGranularizer granularizer, Aggregator[][] rowSelector) longTopNColumnAggregatesProcessor.scanAndAggregate(TopNQuery query, ValueSelectorType selector, Cursor cursor, CursorGranularizer granularizer, Aggregator[][] rowSelector) Used byHeapBasedTopNAlgorithm.