Uses of Class
org.apache.druid.query.groupby.ResultRow
-
-
Uses of ResultRow in org.apache.druid.query.groupby
Methods in org.apache.druid.query.groupby that return ResultRow Modifier and Type Method Description ResultRowResultRow. 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 ResultRowResultRow. of(Object... row)Create a row from an array of objects.Methods in org.apache.druid.query.groupby that return types with arguments of type ResultRow Modifier and Type Method Description Sequence<ResultRow>GroupingEngine. applyPostProcessing(Sequence<ResultRow> results, GroupByQuery query)Apply theGroupByQuery"postProcessingFn", which is responsible for HavingSpec and LimitSpec.BinaryOperator<ResultRow>GroupByQueryQueryToolChest. createMergeFn(Query<ResultRow> query)BinaryOperator<ResultRow>GroupingEngine. createMergeFn(Query<ResultRow> queryParam)SeeQueryToolChest.createMergeFn(Query)for details, allowsGroupByQueryQueryToolChestto delegate implementation to the strategyComparator<ResultRow>GroupByQueryQueryToolChest. createResultComparator(Query<ResultRow> query)Comparator<ResultRow>GroupingEngine. createResultComparator(Query<ResultRow> queryParam)SeeQueryToolChest.createResultComparator(Query), allowsGroupByQueryQueryToolChestto delegate implementation to the strategyQueryRunner<ResultRow>GroupByQueryRunnerFactory. createRunner(Segment segment)CacheStrategy<ResultRow,Object,GroupByQuery>GroupByQueryQueryToolChest. getCacheStrategy(GroupByQuery query)com.fasterxml.jackson.core.type.TypeReference<ResultRow>GroupByQueryQueryToolChest. getResultTypeReference()com.google.common.collect.Ordering<ResultRow>GroupByQuery. getRowOrdering(boolean granular)QueryToolChest<ResultRow,GroupByQuery>GroupByQueryRunnerFactory. getToolchest()com.google.common.base.Function<ResultRow,ResultRow>GroupByQueryQueryToolChest. makePostComputeManipulatorFn(GroupByQuery query, MetricManipulationFn fn)com.google.common.base.Function<ResultRow,ResultRow>GroupByQueryQueryToolChest. makePostComputeManipulatorFn(GroupByQuery query, MetricManipulationFn fn)com.google.common.base.Function<ResultRow,ResultRow>GroupByQueryQueryToolChest. makePreComputeManipulatorFn(GroupByQuery query, MetricManipulationFn fn)com.google.common.base.Function<ResultRow,ResultRow>GroupByQueryQueryToolChest. makePreComputeManipulatorFn(GroupByQuery query, MetricManipulationFn fn)QueryRunner<ResultRow>GroupByQueryQueryToolChest. mergeResults(QueryRunner<ResultRow> runner)QueryRunner<ResultRow>GroupByQueryQueryToolChest. mergeResults(QueryRunner<ResultRow> runner, boolean willMergeRunner)Sequence<ResultRow>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.QueryRunner<ResultRow>GroupByQueryRunnerFactory. mergeRunners(QueryProcessingPool queryProcessingPool, Iterable<QueryRunner<ResultRow>> queryRunners)QueryRunner<ResultRow>GroupingEngine. mergeRunners(QueryProcessingPool queryProcessingPool, Iterable<QueryRunner<ResultRow>> queryRunners)Merges a variety of single-segment query runners into a combined runner.Sequence<ResultRow>GroupByQuery. postProcess(Sequence<ResultRow> results)Apply the havingSpec and limitSpec.QueryRunner<ResultRow>GroupByQueryQueryToolChest. preMergeQueryDecoration(QueryRunner<ResultRow> runner)Sequence<ResultRow>GroupingEngine. process(GroupByQuery query, StorageAdapter storageAdapter, GroupByQueryMetrics groupByQueryMetrics)Process a groupBy query on a singleStorageAdapter.Sequence<ResultRow>GroupingEngine. processSubqueryResult(GroupByQuery subquery, GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> subqueryResult, boolean wasQueryPushedDown)Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to process a subquery.Sequence<ResultRow>GroupingEngine. processSubtotalsSpec(GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> queryResult)Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to generate subtotals.Query<ResultRow>GroupByQuery. withDataSource(DataSource dataSource)static Sequence<ResultRow>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 ResultRow Modifier and Type Method Description static voidGroupingEngine. convertRowTypesToOutputTypes(List<DimensionSpec> dimensionSpecs, ResultRow resultRow, int resultRowDimensionStart)Method parameters in org.apache.druid.query.groupby with type arguments of type ResultRow Modifier and Type Method Description Sequence<ResultRow>GroupingEngine. applyPostProcessing(Sequence<ResultRow> results, GroupByQuery query)Apply theGroupByQuery"postProcessingFn", which is responsible for HavingSpec and LimitSpec.BinaryOperator<ResultRow>GroupByQueryQueryToolChest. createMergeFn(Query<ResultRow> query)BinaryOperator<ResultRow>GroupingEngine. createMergeFn(Query<ResultRow> queryParam)SeeQueryToolChest.createMergeFn(Query)for details, allowsGroupByQueryQueryToolChestto delegate implementation to the strategyComparator<ResultRow>GroupByQueryQueryToolChest. createResultComparator(Query<ResultRow> query)Comparator<ResultRow>GroupingEngine. createResultComparator(Query<ResultRow> queryParam)SeeQueryToolChest.createResultComparator(Query), allowsGroupByQueryQueryToolChestto delegate implementation to the strategyQueryRunner<ResultRow>GroupByQueryQueryToolChest. mergeResults(QueryRunner<ResultRow> runner)QueryRunner<ResultRow>GroupByQueryQueryToolChest. mergeResults(QueryRunner<ResultRow> runner, boolean willMergeRunner)Sequence<ResultRow>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.QueryRunner<ResultRow>GroupByQueryRunnerFactory. mergeRunners(QueryProcessingPool queryProcessingPool, Iterable<QueryRunner<ResultRow>> queryRunners)QueryRunner<ResultRow>GroupingEngine. mergeRunners(QueryProcessingPool queryProcessingPool, Iterable<QueryRunner<ResultRow>> queryRunners)Merges a variety of single-segment query runners into a combined runner.Sequence<ResultRow>GroupByQuery. postProcess(Sequence<ResultRow> results)Apply the havingSpec and limitSpec.QueryRunner<ResultRow>GroupByQueryQueryToolChest. preMergeQueryDecoration(QueryRunner<ResultRow> runner)Sequence<ResultRow>GroupingEngine. processSubqueryResult(GroupByQuery subquery, GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> subqueryResult, boolean wasQueryPushedDown)Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to process a subquery.Sequence<ResultRow>GroupingEngine. processSubtotalsSpec(GroupByQuery query, GroupByQueryResources resource, Sequence<ResultRow> queryResult)Called byGroupByQueryQueryToolChest.mergeResults(QueryRunner)when it needs to generate subtotals.Sequence<Object[]>GroupByQueryQueryToolChest. resultsAsArrays(GroupByQuery query, Sequence<ResultRow> resultSequence)Optional<Sequence<FrameSignaturePair>>GroupByQueryQueryToolChest. resultsAsFrames(GroupByQuery query, Sequence<ResultRow> resultSequence, MemoryAllocatorFactory memoryAllocatorFactory, boolean useNestedForUnknownTypes)This returns a single frame containing the results of the group by query.static Sequence<ResultRow>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. -
Uses of ResultRow in org.apache.druid.query.groupby.epinephelinae
Methods in org.apache.druid.query.groupby.epinephelinae that return ResultRow Modifier and Type Method Description ResultRowGroupByResultMergeFn. apply(ResultRow arg1, ResultRow arg2)Methods in org.apache.druid.query.groupby.epinephelinae that return types with arguments of type ResultRow Modifier and Type Method Description static Pair<Grouper<RowBasedGrouperHelper.RowBasedKey>,Accumulator<AggregateResult,ResultRow>>RowBasedGrouperHelper. 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)Create aGrouperthat groups according to the dimensions and aggregators in "query", along with anAccumulatorthat accepts ResultRows and forwards them to the grouper.static Pair<Grouper<RowBasedGrouperHelper.RowBasedKey>,Accumulator<AggregateResult,ResultRow>>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)Create a single-threaded grouper and accumulator.static CloseableGrouperIterator<RowBasedGrouperHelper.RowBasedKey,ResultRow>RowBasedGrouperHelper. makeGrouperIterator(Grouper<RowBasedGrouperHelper.RowBasedKey> grouper, GroupByQuery query, Closeable closeable)static CloseableGrouperIterator<RowBasedGrouperHelper.RowBasedKey,ResultRow>RowBasedGrouperHelper. makeGrouperIterator(Grouper<RowBasedGrouperHelper.RowBasedKey> grouper, GroupByQuery query, List<DimensionSpec> dimsToInclude, Closeable closeable)static Sequence<ResultRow>GroupByQueryEngine. process(GroupByQuery query, StorageAdapter storageAdapter, ByteBuffer processingBuffer, org.joda.time.DateTime fudgeTimestamp, GroupByQueryConfig querySpecificConfig, DruidProcessingConfig processingConfig, Filter filter, org.joda.time.Interval interval, GroupByQueryMetrics groupByQueryMetrics)Sequence<ResultRow>GroupByRowProcessor.ResultSupplier. results(List<DimensionSpec> dimensionsToInclude)Return a result sequence.Sequence<ResultRow>GroupByMergingQueryRunner. run(QueryPlus<ResultRow> queryPlus, ResponseContext responseContext)Methods in org.apache.druid.query.groupby.epinephelinae with parameters of type ResultRow Modifier and Type Method Description ResultRowGroupByResultMergeFn. apply(ResultRow arg1, ResultRow arg2)Method parameters in org.apache.druid.query.groupby.epinephelinae with type arguments of type ResultRow Modifier and Type Method Description static 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".static GroupByRowProcessor.ResultSupplierGroupByRowProcessor. process(GroupByQuery query, GroupByQuery subquery, Sequence<ResultRow> rows, GroupByQueryConfig config, DruidProcessingConfig processingConfig, GroupByQueryResources resource, com.fasterxml.jackson.databind.ObjectMapper spillMapper, String processingTmpDir, int mergeBufferSize)Process the input of sequence "rows" (output by "subquery") based on "query" and returns aGroupByRowProcessor.ResultSupplier.Sequence<ResultRow>GroupByMergingQueryRunner. run(QueryPlus<ResultRow> queryPlus, ResponseContext responseContext)Constructor parameters in org.apache.druid.query.groupby.epinephelinae with type arguments of type ResultRow Constructor Description GroupByMergingQueryRunner(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) -
Uses of ResultRow in org.apache.druid.query.groupby.epinephelinae.column
Methods in org.apache.druid.query.groupby.epinephelinae.column with parameters of type ResultRow Modifier and Type Method Description voidFixedWidthGroupByColumnSelectorStrategy. 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 ResultRow Modifier and Type Method Description static Sequence<ResultRow>VectorGroupByEngine. process(GroupByQuery query, StorageAdapter storageAdapter, ByteBuffer processingBuffer, org.joda.time.DateTime fudgeTimestamp, Filter filter, org.joda.time.Interval interval, GroupByQueryConfig config, DruidProcessingConfig processingConfig, GroupByQueryMetrics groupByQueryMetrics)Methods in org.apache.druid.query.groupby.epinephelinae.vector with parameters of type ResultRow Modifier and Type Method Description voidDictionaryBuildingSingleValueStringGroupByVectorColumnSelector. 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 ResultRow Modifier and Type Method Description booleanAlwaysHavingSpec. eval(ResultRow row)booleanAndHavingSpec. eval(ResultRow row)booleanDimensionSelectorHavingSpec. eval(ResultRow row)booleanDimFilterHavingSpec. eval(ResultRow row)booleanEqualToHavingSpec. eval(ResultRow row)booleanGreaterThanHavingSpec. eval(ResultRow row)booleanHavingSpec. eval(ResultRow row)Evaluates if a given row satisfies the having spec.booleanLessThanHavingSpec. eval(ResultRow row)booleanNeverHavingSpec. eval(ResultRow row)booleanNotHavingSpec. eval(ResultRow row)booleanOrHavingSpec. eval(ResultRow row) -
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 ResultRow Modifier and Type Method Description com.google.common.base.Function<Sequence<ResultRow>,Sequence<ResultRow>>DefaultLimitSpec. build(GroupByQuery query)com.google.common.base.Function<Sequence<ResultRow>,Sequence<ResultRow>>DefaultLimitSpec. build(GroupByQuery query)com.google.common.base.Function<Sequence<ResultRow>,Sequence<ResultRow>>LimitSpec. build(GroupByQuery query)Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.com.google.common.base.Function<Sequence<ResultRow>,Sequence<ResultRow>>LimitSpec. build(GroupByQuery query)Returns a function that applies a limit to an input sequence that is assumed to be sorted on dimensions.com.google.common.base.Function<Sequence<ResultRow>,Sequence<ResultRow>>NoopLimitSpec. build(GroupByQuery query)com.google.common.base.Function<Sequence<ResultRow>,Sequence<ResultRow>>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 ResultRow Modifier and Type Method Description static MapOfColumnsRowsAndColumnsMapOfColumnsRowsAndColumns. fromResultRow(ArrayList<ResultRow> objs, RowSignature signature)
-