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>
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
ConstructorsConstructorDescriptionPerSegmentOptimizingQueryRunner(QueryRunner<T> base, PerSegmentQueryOptimizationContext optimizationContext) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.druid.query.QueryRunner
run
-
Constructor Details
-
PerSegmentOptimizingQueryRunner
public PerSegmentOptimizingQueryRunner(QueryRunner<T> base, PerSegmentQueryOptimizationContext optimizationContext)
-
-
Method Details
-
run
Description copied from interface:QueryRunnerRuns the given query and returns results in a time-ordered sequence.- Specified by:
runin interfaceQueryRunner<T>
-