15 #ifndef IMPALA_SERVICE_FRAGMENT_EXEC_STATE_H
16 #define IMPALA_SERVICE_FRAGMENT_EXEC_STATE_H
18 #include <boost/bind.hpp>
19 #include <boost/thread/mutex.hpp>
const TUniqueId & fragment_instance_id() const
TODO: Consider allowing fragment IDs as category parameters.
boost::scoped_ptr< Thread > exec_thread_
the thread executing this plan fragment
void Exec()
Main loop of plan fragment execution. Blocks until execution finishes.
Status Prepare(const TExecPlanFragmentParams &exec_params)
Call Prepare() and create and initialize data sink.
FragmentExecState(const TPlanFragmentInstanceCtx &fragment_instance_ctx, ExecEnv *exec_env)
Status UpdateStatus(const Status &status)
void set_exec_thread(Thread *exec_thread)
Set the execution thread, taking ownership of the object.
boost::mutex status_lock_
protects exec_status_
ImpalaInternalServiceClientCache * client_cache_
const TNetworkAddress & coord_address() const
TExecPlanFragmentParams exec_params_
TPlanFragmentInstanceCtx fragment_instance_ctx_
const TUniqueId & query_id() const
PlanFragmentExecutor executor_
Execution state of a single plan fragment.
void ReportStatusCb(const Status &status, RuntimeProfile *profile, bool done)