Struct datafusion::execution::context::TaskContext
source · [−]pub struct TaskContext { /* private fields */ }
Expand description
Task Execution Context
Implementations
sourceimpl TaskContext
impl TaskContext
sourcepub fn new(
task_id: String,
session_id: String,
task_props: HashMap<String, String>,
scalar_functions: HashMap<String, Arc<ScalarUDF>>,
aggregate_functions: HashMap<String, Arc<AggregateUDF>>,
runtime: Arc<RuntimeEnv>
) -> Self
pub fn new(
task_id: String,
session_id: String,
task_props: HashMap<String, String>,
scalar_functions: HashMap<String, Arc<ScalarUDF>>,
aggregate_functions: HashMap<String, Arc<AggregateUDF>>,
runtime: Arc<RuntimeEnv>
) -> Self
Create a new task context instance
sourcepub fn session_config(&self) -> SessionConfig
pub fn session_config(&self) -> SessionConfig
Return the SessionConfig associated with the Task
sourcepub fn session_id(&self) -> String
pub fn session_id(&self) -> String
Return the session_id of this TaskContext
sourcepub fn task_id(&self) -> Option<String>
pub fn task_id(&self) -> Option<String>
Return the task_id of this TaskContext
sourcepub fn runtime_env(&self) -> Arc<RuntimeEnv>
pub fn runtime_env(&self) -> Arc<RuntimeEnv>
Return the RuntimeEnv associated with this TaskContext
Trait Implementations
sourceimpl From<&'_ SessionContext> for TaskContext
impl From<&'_ SessionContext> for TaskContext
Create a new task context instance from SessionContext
sourcefn from(session: &SessionContext) -> Self
fn from(session: &SessionContext) -> Self
Converts to this type from the input type.
sourceimpl From<&'_ SessionState> for TaskContext
impl From<&'_ SessionState> for TaskContext
Create a new task context instance from SessionState
sourcefn from(state: &SessionState) -> Self
fn from(state: &SessionState) -> Self
Converts to this type from the input type.
sourceimpl FunctionRegistry for TaskContext
impl FunctionRegistry for TaskContext
Auto Trait Implementations
impl !RefUnwindSafe for TaskContext
impl Send for TaskContext
impl Sync for TaskContext
impl Unpin for TaskContext
impl !UnwindSafe for TaskContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more