MCPcopy Create free account
hub / github.com/apache/datafusion / from

Method from

datafusion/ffi/src/execution/task_ctx.rs:167–181  ·  view source on GitHub ↗
(ctx: Arc<TaskContext>)

Source from the content-addressed store, hash-verified

165
166impl From<Arc<TaskContext>> for FFI_TaskContext {
167 fn from(ctx: Arc<TaskContext>) -> Self {
168 let private_data = Box::new(TaskContextPrivateData { ctx });
169
170 FFI_TaskContext {
171 session_id: session_id_fn_wrapper,
172 task_id: task_id_fn_wrapper,
173 session_config: session_config_fn_wrapper,
174 scalar_functions: scalar_functions_fn_wrapper,
175 aggregate_functions: aggregate_functions_fn_wrapper,
176 window_functions: window_functions_fn_wrapper,
177 release: release_fn_wrapper,
178 private_data: Box::into_raw(private_data) as *mut c_void,
179 library_marker_id: crate::get_library_marker_id,
180 }
181 }
182}
183
184impl From<FFI_TaskContext> for Arc<TaskContext> {

Callers

nothing calls this directly

Calls 8

newFunction · 0.85
get_library_marker_idFunction · 0.85
collectMethod · 0.80
innerMethod · 0.45
intoMethod · 0.45
mapMethod · 0.45
to_stringMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected