Package org.apache.druid.query
Class PerSegmentOptimizingQueryRunner<T>
- java.lang.Object
-
- org.apache.druid.query.PerSegmentOptimizingQueryRunner<T>
-
- Type Parameters:
T
-
- All Implemented Interfaces:
QueryRunner<T>
public class PerSegmentOptimizingQueryRunner<T> extends Object implements QueryRunner<T>
This runner optimizes queries made on a single segment, using per-segment information, before submitting the queries to the base runner. Example optimizations include adjusting query filters based on per-segment information, such as intervals. This query runner should only wrap base query runners that will be used to query a single segment (i.e., when the query reaches a historical node).
-
-
Constructor Summary
Constructors Constructor Description PerSegmentOptimizingQueryRunner(QueryRunner<T> base, PerSegmentQueryOptimizationContext optimizationContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sequence<T>
run(QueryPlus<T> input, ResponseContext responseContext)
Runs the given query and returns results in a time-ordered sequence.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.druid.query.QueryRunner
run
-
-
-
-
Constructor Detail
-
PerSegmentOptimizingQueryRunner
public PerSegmentOptimizingQueryRunner(QueryRunner<T> base, PerSegmentQueryOptimizationContext optimizationContext)
-
-
Method Detail
-
run
public Sequence<T> run(QueryPlus<T> input, ResponseContext responseContext)
Description copied from interface:QueryRunner
Runs the given query and returns results in a time-ordered sequence.- Specified by:
run
in interfaceQueryRunner<T>
-
-