Package org.apache.druid.query
Class AbstractPrioritizedQueryRunnerCallable<T,V>
java.lang.Object
org.apache.druid.query.AbstractPrioritizedQueryRunnerCallable<T,V>
- Type Parameters:
T-V-
- All Implemented Interfaces:
Callable<T>,PrioritizedCallable<T>,PrioritizedQueryRunnerCallable<T,V>
public abstract class AbstractPrioritizedQueryRunnerCallable<T,V>
extends Object
implements PrioritizedQueryRunnerCallable<T,V>
A helper class to avoid boilerplate for creating
PrioritizedQueryRunnerCallable objects.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintThis method can be used by the extensions to get the runner that the given query execution task corresponds to.
-
Constructor Details
-
AbstractPrioritizedQueryRunnerCallable
-
-
Method Details
-
getRunner
Description copied from interface:PrioritizedQueryRunnerCallableThis method can be used by the extensions to get the runner that the given query execution task corresponds to. That in turn can be used to fetch any state associated with the QueryRunner such as the segment info for example. Extensions can carry any state from custom implementation of QuerySegmentWalker to a custom implementation ofQueryProcessingPool.submitRunnerTask(PrioritizedQueryRunnerCallable)- Specified by:
getRunnerin interfacePrioritizedQueryRunnerCallable<T,V>
-
getPriority
public int getPriority()- Specified by:
getPriorityin interfacePrioritizedCallable<T>
-