Uses of Class
org.apache.druid.query.groupby.ResultRow
Packages that use ResultRow
Package
Description
-
Uses of ResultRow in org.apache.druid.query.groupby
Methods in org.apache.druid.query.groupby that return ResultRowModifier and TypeMethodDescriptionResultRow.copy()Returns a copy of this row.static ResultRowResultRow.create(int size) Create a row of a certain size, initialized to all nulls.static ResultRowResultRow.fromLegacyRow(Row row, GroupByQuery query) Create a row based on a legacyRowthat was generated by a givenGroupByQuery.static ResultRowCreate a row from an array of objects.Methods in org.apache.druid.query.groupby that return types with arguments of type ResultRowModifier and TypeMethodDescriptionGroupingEngine.applyPostProcessing(Sequence<ResultRow> results, GroupByQuery query) Apply theGroupByQuery"postProcessingFn", which is responsible for HavingSpec and LimitSpec.GroupByQueryQueryToolChest.createMergeFn(Query<ResultRow> query) GroupingEngine.createMergeFn(Query<ResultRow> queryParam) SeeQueryToolChest.createMergeFn(Query)for details, allowsGroupByQueryQueryToolChestto delegate implementation to the strategyGroupByQueryQueryToolChest.createResultComparator(Query<ResultRow> query) GroupingEngine.createResultComparator(Query<ResultRow> queryParam) SeeQueryToolChest.createResultComparator(Query), allowsGroupByQueryQueryToolChestto delegate implementation to the strategyGroupByQueryRunnerFactory.createRunner(Segment segment) GroupByQueryQueryToolChest.getCacheStrategy(GroupByQuery query) GroupByQueryQueryToolChest.getCacheStrategy(GroupByQuery query, com.fasterxml.jackson.databind.ObjectMapper mapper) com.fasterxml.jackson.core.type.TypeReference<ResultRow> GroupByQueryQueryToolChest.getResultTypeReference()com.google.common.collect.Ordering<ResultRow> GroupByQuery.getRowOrdering(boolean granular) com.google.common.collect.Ordering<ResultRow> GroupByQuery.OrderingAndDimensions.getRowOrdering()GroupByQueryRunnerFactory.getToolchest()GroupByQueryQueryToolChest.makePostComputeManipulatorFn(GroupByQuery query, MetricManipulationFn fn) GroupByQueryQueryToolChest.makePostComputeManipulatorFn(GroupByQuery query, MetricManipulationFn fn) GroupByQueryQueryToolChest.makePreComputeManipulatorFn(GroupByQuery query, MetricManipulationFn fn) GroupByQueryQueryToolChest.makePreComputeManipulatorFn(GroupByQuery query, MetricManipulationFn fn) GroupByQueryQueryToolChest.mergeResults(QueryRunner<ResultRow> runner) GroupByQueryQueryToolChest.mergeResults(QueryRunner<ResultRow> runner, boolean willMergeRunner) GroupingEngine.mergeResults(QueryRunner<ResultRow> baseRunner, GroupByQuery query, ResponseContext responseContext) Runs a providedQueryRunneron a providedGroupByQuery, which is assumed to return rows that are properly sorted (by timestamp and dimensions) but not necessarily fully merged (that is, there may be adjacent rows with the same timestamp and dimensions) and without PostAggregators computed.GroupByQueryRunnerFactory.mergeRunners(QueryProcessingPool queryProcessingPool, Iterable<QueryRunner<ResultRow>> queryRunners) GroupingEngine.mergeRunners(QueryProcessingPool queryProcessingPool, Iterable<QueryRunner<ResultRow>> queryRunners) Merges a variety of single-segment query runners into a combined runner.GroupByQuery.postProcess(Sequence<ResultRow> results) Apply the havingSpec and limitSpec.GroupByQueryQueryToolChest.preMergeQueryDecoration(QueryRunner<ResultRow> runner) GroupingEngine.process(GroupByQuery query, CursorFactory cursorFactory, TimeBoundaryInspector timeBoundaryInspector, NonBlockingPool<ByteBuffer> bufferPool, GroupByQueryMetrics groupByQueryMetrics) Process a groupBy query on a singleCursorFactory.GroupingEngine.processSubqueryResult(GroupByQuery subquery, GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> subqueryResult, boolean wasQueryPushedDown, GroupByStatsProvider.PerQueryStats perQueryStats) Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to process a subquery.GroupingEngine.processSubtotalsSpec(GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> queryResult, GroupByStatsProvider.PerQueryStats perQueryStats) Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to generate subtotals.GroupByQuery.withDataSource(DataSource dataSource) GroupingEngine.wrapSummaryRowIfNeeded(GroupByQuery query, Sequence<ResultRow> process) Wraps the sequence around if for this query a summary row might be needed in case the input becomes empty.Methods in org.apache.druid.query.groupby with parameters of type ResultRowModifier and TypeMethodDescriptionstatic voidGroupingEngine.convertRowTypesToOutputTypes(List<DimensionSpec> dimensionSpecs, ResultRow resultRow, int resultRowDimensionStart) Method parameters in org.apache.druid.query.groupby with type arguments of type ResultRowModifier and TypeMethodDescriptionGroupingEngine.applyPostProcessing(Sequence<ResultRow> results, GroupByQuery query) Apply theGroupByQuery"postProcessingFn", which is responsible for HavingSpec and LimitSpec.GroupByQueryQueryToolChest.createMergeFn(Query<ResultRow> query) GroupingEngine.createMergeFn(Query<ResultRow> queryParam) SeeQueryToolChest.createMergeFn(Query)for details, allowsGroupByQueryQueryToolChestto delegate implementation to the strategyGroupByQueryQueryToolChest.createResultComparator(Query<ResultRow> query) GroupingEngine.createResultComparator(Query<ResultRow> queryParam) SeeQueryToolChest.createResultComparator(Query), allowsGroupByQueryQueryToolChestto delegate implementation to the strategyGroupByQueryQueryToolChest.mergeResults(QueryRunner<ResultRow> runner) GroupByQueryQueryToolChest.mergeResults(QueryRunner<ResultRow> runner, boolean willMergeRunner) GroupingEngine.mergeResults(QueryRunner<ResultRow> baseRunner, GroupByQuery query, ResponseContext responseContext) Runs a providedQueryRunneron a providedGroupByQuery, which is assumed to return rows that are properly sorted (by timestamp and dimensions) but not necessarily fully merged (that is, there may be adjacent rows with the same timestamp and dimensions) and without PostAggregators computed.GroupByQueryRunnerFactory.mergeRunners(QueryProcessingPool queryProcessingPool, Iterable<QueryRunner<ResultRow>> queryRunners) GroupingEngine.mergeRunners(QueryProcessingPool queryProcessingPool, Iterable<QueryRunner<ResultRow>> queryRunners) Merges a variety of single-segment query runners into a combined runner.GroupByQuery.postProcess(Sequence<ResultRow> results) Apply the havingSpec and limitSpec.GroupByQueryQueryToolChest.preMergeQueryDecoration(QueryRunner<ResultRow> runner) GroupingEngine.processSubqueryResult(GroupByQuery subquery, GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> subqueryResult, boolean wasQueryPushedDown, GroupByStatsProvider.PerQueryStats perQueryStats) Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to process a subquery.GroupingEngine.processSubtotalsSpec(GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> queryResult, GroupByStatsProvider.PerQueryStats perQueryStats) Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to generate subtotals.GroupByQueryQueryToolChest.resultsAsArrays(GroupByQuery query, Sequence<ResultRow> resultSequence) GroupByQueryQueryToolChest.resultsAsFrames(GroupByQuery query, Sequence<ResultRow> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes) This returns a single frame containing the results of the group by query.GroupingEngine.wrapSummaryRowIfNeeded(GroupByQuery query, Sequence<ResultRow> process) Wraps the sequence around if for this query a summary row might be needed in case the input becomes empty.Constructor parameters in org.apache.druid.query.groupby with type arguments of type ResultRowModifierConstructorDescriptionOrderingAndDimensions(com.google.common.collect.Ordering<ResultRow> rowOrdering, List<DimensionSpec> dimensions) -
Uses of ResultRow in org.apache.druid.query.groupby.epinephelinae
Methods in org.apache.druid.query.groupby.epinephelinae that return ResultRowModifier and TypeMethodDescriptionMethods in org.apache.druid.query.groupby.epinephelinae that return types with arguments of type ResultRowModifier and TypeMethodDescriptionRowBasedGrouperHelper.createGrouperAccumulatorPair(GroupByQuery query, GroupByQuery subquery, GroupByQueryConfig config, DruidProcessingConfig processingConfig, com.google.common.base.Supplier<ByteBuffer> bufferSupplier, ReferenceCountingResourceHolder<ByteBuffer> combineBufferHolder, int concurrencyHint, LimitedTemporaryStorage temporaryStorage, com.fasterxml.jackson.databind.ObjectMapper spillMapper, com.google.common.util.concurrent.ListeningExecutorService grouperSorter, int priority, boolean hasQueryTimeout, long queryTimeoutAt, int mergeBufferSize, GroupByStatsProvider.PerQueryStats perQueryStats) Create aGrouperthat groups according to the dimensions and aggregators in "query", along with anAccumulatorthat accepts ResultRows and forwards them to the grouper.RowBasedGrouperHelper.createGrouperAccumulatorPair(GroupByQuery query, GroupByQuery subquery, GroupByQueryConfig config, DruidProcessingConfig processingConfig, com.google.common.base.Supplier<ByteBuffer> bufferSupplier, LimitedTemporaryStorage temporaryStorage, com.fasterxml.jackson.databind.ObjectMapper spillMapper, int mergeBufferSize, GroupByStatsProvider.PerQueryStats perQueryStats) Create a single-threaded grouper and accumulator.RowBasedGrouperHelper.makeGrouperIterator(Grouper<RowBasedGrouperHelper.RowBasedKey> grouper, GroupByQuery query, Closeable closeable) RowBasedGrouperHelper.makeGrouperIterator(Grouper<RowBasedGrouperHelper.RowBasedKey> grouper, GroupByQuery query, List<DimensionSpec> dimsToInclude, Closeable closeable) GroupByQueryEngine.process(GroupByQuery query, TimeBoundaryInspector timeBoundaryInspector, CursorHolder cursorHolder, CursorBuildSpec buildSpec, ByteBuffer processingBuffer, org.joda.time.DateTime fudgeTimestamp, GroupByQueryConfig querySpecificConfig, DruidProcessingConfig processingConfig) GroupByRowProcessor.ResultSupplier.results(List<DimensionSpec> dimensionsToInclude) Return a result sequence.GroupByMergingQueryRunner.run(QueryPlus<ResultRow> queryPlus, ResponseContext responseContext) Methods in org.apache.druid.query.groupby.epinephelinae with parameters of type ResultRowModifier and TypeMethodDescriptionMethod parameters in org.apache.druid.query.groupby.epinephelinae with type arguments of type ResultRowModifier and TypeMethodDescriptionstatic ColumnSelectorFactoryRowBasedGrouperHelper.createResultRowBasedColumnSelectorFactory(GroupByQuery query, com.google.common.base.Supplier<ResultRow> supplier, RowSignature.Finalization finalization) Creates aColumnSelectorFactorythat can read rows which originate as results of the provided "query".GroupByRowProcessor.process(GroupByQuery query, GroupByQuery subquery, Sequence<ResultRow> rows, GroupByQueryConfig config, DruidProcessingConfig processingConfig, GroupByQueryResources resource, com.fasterxml.jackson.databind.ObjectMapper spillMapper, String processingTmpDir, int mergeBufferSize, GroupByStatsProvider.PerQueryStats perQueryStats) Process the input of sequence "rows" (output by "subquery") based on "query" and returns aGroupByRowProcessor.ResultSupplier.GroupByMergingQueryRunner.run(QueryPlus<ResultRow> queryPlus, ResponseContext responseContext) Constructor parameters in org.apache.druid.query.groupby.epinephelinae with type arguments of type ResultRowModifierConstructorDescriptionGroupByMergingQueryRunner(GroupByQueryConfig config, DruidProcessingConfig processingConfig, QueryProcessingPool queryProcessingPool, QueryWatcher queryWatcher, Iterable<QueryRunner<ResultRow>> queryables, GroupByResourcesReservationPool groupByResourcesReservationPool, int concurrencyHint, int mergeBufferSize, com.fasterxml.jackson.databind.ObjectMapper spillMapper, String processingTmpDir, GroupByStatsProvider groupByStatsProvider) -
Uses of ResultRow in org.apache.druid.query.groupby.epinephelinae.column
Methods in org.apache.druid.query.groupby.epinephelinae.column with parameters of type ResultRowModifier and TypeMethodDescriptionvoidFixedWidthGroupByColumnSelectorStrategy.processValueFromGroupingKey(GroupByColumnSelectorPlus selectorPlus, ByteBuffer key, ResultRow resultRow, int keyBufferPosition) voidGroupByColumnSelectorStrategy.processValueFromGroupingKey(GroupByColumnSelectorPlus selectorPlus, ByteBuffer key, ResultRow resultRow, int keyBufferPosition) Read a value from a grouping key and add it to the group by query result row, using the output name specified in a DimensionSpec.voidKeyMappingMultiValueGroupByColumnSelectorStrategy.DictionaryBuilding.processValueFromGroupingKey(GroupByColumnSelectorPlus selectorPlus, ByteBuffer key, ResultRow resultRow, int keyBufferPosition) voidKeyMappingMultiValueGroupByColumnSelectorStrategy.PrebuiltDictionary.processValueFromGroupingKey(GroupByColumnSelectorPlus selectorPlus, ByteBuffer key, ResultRow resultRow, int keyBufferPosition) -
Uses of ResultRow in org.apache.druid.query.groupby.epinephelinae.vector
Methods in org.apache.druid.query.groupby.epinephelinae.vector that return types with arguments of type ResultRowModifier and TypeMethodDescriptionVectorGroupByEngine.process(GroupByQuery query, TimeBoundaryInspector timeBoundaryInspector, CursorHolder cursorHolder, ByteBuffer processingBuffer, org.joda.time.DateTime fudgeTimestamp, org.joda.time.Interval interval, GroupByQueryConfig config, DruidProcessingConfig processingConfig) Methods in org.apache.druid.query.groupby.epinephelinae.vector with parameters of type ResultRowModifier and TypeMethodDescriptionvoidDictionaryBuildingSingleValueStringGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) voidDoubleGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) voidFloatGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) voidGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) Write key parts for this column into a particular result row.voidLongGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) voidNilGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) voidNullableDoubleGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) voidNullableFloatGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) voidNullableLongGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) voidSingleValueStringGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition) -
Uses of ResultRow in org.apache.druid.query.groupby.having
Methods in org.apache.druid.query.groupby.having with parameters of type ResultRowModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanEvaluates if a given row satisfies the having spec.booleanbooleanbooleanboolean -
Uses of ResultRow in org.apache.druid.query.groupby.orderby
Methods in org.apache.druid.query.groupby.orderby that return types with arguments of type ResultRowModifier and TypeMethodDescriptionDefaultLimitSpec.build(GroupByQuery query) DefaultLimitSpec.build(GroupByQuery query) LimitSpec.build(GroupByQuery query) Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.LimitSpec.build(GroupByQuery query) Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.NoopLimitSpec.build(GroupByQuery query) NoopLimitSpec.build(GroupByQuery query) -
Uses of ResultRow in org.apache.druid.query.rowsandcols
Method parameters in org.apache.druid.query.rowsandcols with type arguments of type ResultRowModifier and TypeMethodDescriptionstatic MapOfColumnsRowsAndColumnsMapOfColumnsRowsAndColumns.fromResultRow(ArrayList<ResultRow> objs, RowSignature signature) static MapOfColumnsRowsAndColumnsMapOfColumnsRowsAndColumns.fromResultRowTillIndex(ArrayList<ResultRow> objs, RowSignature signature, int index) -
Uses of ResultRow in org.apache.druid.segment.virtual
Methods in org.apache.druid.segment.virtual with parameters of type ResultRowModifier and TypeMethodDescriptionvoidExpressionDeferredGroupByVectorColumnSelector.writeKeyToResultRow(MemoryPointer keyMemory, int keyOffset, ResultRow resultRow, int resultRowPosition)