Class QuerySwappingQueryRunner<T>

java.lang.Object
org.apache.druid.server.QuerySwappingQueryRunner<T>
All Implemented Interfaces:
QueryRunner<T>

public class QuerySwappingQueryRunner<T> extends Object implements QueryRunner<T>
A QueryRunner which validates that a *specific* query is passed in, and then swaps it with another one. Useful in passing the modified query to the underlying runners, since the {@link QuerySegmentWalker#} Useful since walkers might need to enrich the query with additional parameters and the callers actually calling the `run()` won't know about this modification. It validates that the query passed to the `run()` was the same query that was passed while creating the runner, to ensure that the enrichment was done to the correct query.