public class WorkManager.WorkerBee extends Object
| Constructor and Description |
|---|
WorkerBee() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFragmentRunner(FragmentExecutor fragmentExecutor)
Currently used to start a root fragment that is not blocked on data, and leaf fragments.
|
void |
addNewForeman(Foreman foreman) |
void |
addNewWork(Runnable runnable)
Add a self contained runnable work to executor service.
|
boolean |
cancelForeman(UserBitShared.QueryId queryId,
DrillUserPrincipal principal) |
DrillbitContext |
getContext() |
Foreman |
getForemanForQueryId(UserBitShared.QueryId queryId) |
FragmentExecutor |
getFragmentRunner(ExecProtos.FragmentHandle handle) |
void |
receiveRuntimeFilter(RuntimeFilterWritable runtimeFilter)
receive the RuntimeFilter thorough the wire
|
void |
retireForeman(Foreman foreman)
Remove the given Foreman from the running query list.
|
void |
startFragmentPendingRemote(FragmentManager fragmentManager)
Currently used to start a root fragment that is blocked on data, and intermediate fragments.
|
public void addNewForeman(Foreman foreman)
public void addNewWork(Runnable runnable)
runnable - runnable to executepublic boolean cancelForeman(UserBitShared.QueryId queryId, DrillUserPrincipal principal)
public void retireForeman(Foreman foreman)
The running query list is a bit of a misnomer, because it doesn't
necessarily mean that Foreman.run()
is executing. That only lasts for the duration of query setup, after which
the Foreman instance survives as a state machine that reacts to events
from the local root fragment as well as RPC responses from remote Drillbits.
foreman - the Foreman to retirepublic Foreman getForemanForQueryId(UserBitShared.QueryId queryId)
public DrillbitContext getContext()
public void addFragmentRunner(FragmentExecutor fragmentExecutor)
fragmentExecutor - the executor to runpublic void startFragmentPendingRemote(FragmentManager fragmentManager)
fragmentManager - the manager for the fragmentpublic FragmentExecutor getFragmentRunner(ExecProtos.FragmentHandle handle)
public void receiveRuntimeFilter(RuntimeFilterWritable runtimeFilter)
runtimeFilter - runtime filterCopyright © 2021 The Apache Software Foundation. All rights reserved.