Class GroupByQueryEngine
- java.lang.Object
-
- org.apache.druid.query.groupby.epinephelinae.GroupByQueryEngine
-
public class GroupByQueryEngine extends Object
Contains logic to process a groupBy query on a singleStorageAdapterin a non-vectorized manner. Processing returns aSequenceofResultRowobjects that are not guaranteed to be in any particular order, and may not even be fully grouped. It is expected that a downstreamGroupByMergingQueryRunnerwill finish grouping these results.This code runs on anything that processes
StorageAdapterdirectly, typically data servers like Historicals.Used for non-vectorized processing by
GroupingEngine.process(GroupByQuery, StorageAdapter, GroupByQueryMetrics). This code runs on data servers, like Historicals and Peons, and also Brokers, if they operate on local datasources like inlined data wherein the broker needs to process some portion of data like the data server- See Also:
for vectorized version of this class
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanPushDownLimit(ColumnSelectorFactory columnSelectorFactory, String columnName)check if a column will operate correctly withLimitedBufferHashGrouperfor query limit pushdownstatic Sequence<ResultRow>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)
-
-
-
Method Detail
-
process
public static Sequence<ResultRow> process(GroupByQuery query, StorageAdapter storageAdapter, ByteBuffer processingBuffer, @Nullable org.joda.time.DateTime fudgeTimestamp, GroupByQueryConfig querySpecificConfig, DruidProcessingConfig processingConfig, @Nullable Filter filter, org.joda.time.Interval interval, @Nullable GroupByQueryMetrics groupByQueryMetrics)
-
canPushDownLimit
public static boolean canPushDownLimit(ColumnSelectorFactory columnSelectorFactory, String columnName)
check if a column will operate correctly withLimitedBufferHashGrouperfor query limit pushdown
-
-