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

Function aggregate_functions_fn_wrapper

datafusion/ffi/src/session/mod.rs:218–232  ·  view source on GitHub ↗
(
    session: &FFI_SessionRef,
)

Source from the content-addressed store, hash-verified

216}
217
218unsafe extern "C" fn aggregate_functions_fn_wrapper(
219 session: &FFI_SessionRef,
220) -> SVec<(SString, FFI_AggregateUDF)> {
221 let session = session.inner();
222 session
223 .aggregate_functions()
224 .iter()
225 .map(|(name, udaf)| {
226 (
227 name.clone().into(),
228 FFI_AggregateUDF::from(Arc::clone(udaf)),
229 )
230 })
231 .collect()
232}
233
234unsafe extern "C" fn window_functions_fn_wrapper(
235 session: &FFI_SessionRef,

Callers

nothing calls this directly

Calls 7

collectMethod · 0.80
innerMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
aggregate_functionsMethod · 0.45
intoMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…