Package org.apache.druid.query
Class NoopQueryProcessingPool
java.lang.Object
org.apache.druid.query.NoopQueryProcessingPool
- All Implemented Interfaces:
com.google.common.util.concurrent.ListeningExecutorService,Executor,ExecutorService,QueryProcessingPool
Implementation of
QueryProcessingPool that throws when any query execution task unit is submitted to it. It is
semantically shutdown from the moment it is created, and since the shutdown methods are supposed to be idempotent,
they do not throw like the execution methods-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanawaitTermination(long l, TimeUnit timeUnit) voidstatic NoopQueryProcessingPoolinstance()invokeAll(Collection<? extends Callable<T>> collection) invokeAll(Collection<? extends Callable<T>> collection, long l, TimeUnit timeUnit) <T> TinvokeAny(Collection<? extends Callable<T>> collection) <T> TinvokeAny(Collection<? extends Callable<T>> collection, long l, TimeUnit timeUnit) booleanbooleanvoidshutdown()com.google.common.util.concurrent.ListenableFuture<?> <T> com.google.common.util.concurrent.ListenableFuture<T> <T> com.google.common.util.concurrent.ListenableFuture<T> <T,V> com.google.common.util.concurrent.ListenableFuture <T> submitRunnerTask(PrioritizedQueryRunnerCallable<T, V> task) Submits the query execution unit task for asynchronous execution.<T,V> com.google.common.util.concurrent.ListenableFuture <T> submitRunnerTask(PrioritizedQueryRunnerCallable<T, V> task, long timeout, TimeUnit unit) Submits the query execution task for asynchronous execution, with a provided timeout.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.util.concurrent.ListeningExecutorService
awaitTermination, invokeAll, invokeAny
-
Constructor Details
-
NoopQueryProcessingPool
public NoopQueryProcessingPool()
-
-
Method Details
-
instance
-
submitRunnerTask
public <T,V> com.google.common.util.concurrent.ListenableFuture<T> submitRunnerTask(PrioritizedQueryRunnerCallable<T, V> task) Description copied from interface:QueryProcessingPoolSubmits the query execution unit task for asynchronous execution.- Specified by:
submitRunnerTaskin interfaceQueryProcessingPool- Type Parameters:
T- - Task result typeV- - Query runner sequence type- Parameters:
task- - Task to be submitted.- Returns:
- - Future object for tracking the task completion.
-
submitRunnerTask
public <T,V> com.google.common.util.concurrent.ListenableFuture<T> submitRunnerTask(PrioritizedQueryRunnerCallable<T, V> task, long timeout, TimeUnit unit) Description copied from interface:QueryProcessingPoolSubmits the query execution task for asynchronous execution, with a provided timeout.- Specified by:
submitRunnerTaskin interfaceQueryProcessingPool- Type Parameters:
T- - Task result typeV- - Query runner sequence type- Parameters:
task- - Task to be submitted.timeout- - Timeout valueunit- - Timeout unit- Returns:
- - Future object for tracking the task completion.
-
submit
- Specified by:
submitin interfaceExecutorService- Specified by:
submitin interfacecom.google.common.util.concurrent.ListeningExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService- Specified by:
submitin interfacecom.google.common.util.concurrent.ListeningExecutorService
-
submit
- Specified by:
submitin interfaceExecutorService- Specified by:
submitin interfacecom.google.common.util.concurrent.ListeningExecutorService
-
invokeAll
- Specified by:
invokeAllin interfaceExecutorService- Specified by:
invokeAllin interfacecom.google.common.util.concurrent.ListeningExecutorService
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> collection, long l, TimeUnit timeUnit) - Specified by:
invokeAllin interfaceExecutorService- Specified by:
invokeAllin interfacecom.google.common.util.concurrent.ListeningExecutorService
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceExecutorService
-
shutdownNow
- Specified by:
shutdownNowin interfaceExecutorService
-
isShutdown
public boolean isShutdown()- Specified by:
isShutdownin interfaceExecutorService
-
isTerminated
public boolean isTerminated()- Specified by:
isTerminatedin interfaceExecutorService
-
awaitTermination
- Specified by:
awaitTerminationin interfaceExecutorService
-
invokeAny
- Specified by:
invokeAnyin interfaceExecutorService
-
invokeAny
- Specified by:
invokeAnyin interfaceExecutorService
-
execute
-