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

Method as_local

datafusion/ffi/src/session/mod.rs:394–399  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

392
393impl FFI_SessionRef {
394 pub fn as_local(&self) -> Option<&(dyn Session + Send + Sync)> {
395 if (self.library_marker_id)() == crate::get_library_marker_id() {
396 return Some(self.inner());
397 }
398 None
399 }
400}
401
402impl TryFrom<&FFI_SessionRef> for ForeignSession {

Callers 1

create_fn_wrapper_implFunction · 0.80

Calls 2

get_library_marker_idFunction · 0.85
innerMethod · 0.45

Tested by

no test coverage detected