pub struct FFI_PhysicalExtensionCodec {
pub clone: unsafe extern "C" fn(plan: &Self) -> Self,
pub release: unsafe extern "C" fn(arg: &mut Self),
pub version: unsafe extern "C" fn() -> u64,
pub private_data: *mut c_void,
pub library_marker_id: extern "C" fn() -> usize,
/* private fields */
}Expand description
A stable struct for sharing PhysicalExtensionCodec across FFI boundaries.
Fields§
§clone: unsafe extern "C" fn(plan: &Self) -> SelfUsed to create a clone on the provider of the execution plan. This should only need to be called by the receiver of the plan.
release: unsafe extern "C" fn(arg: &mut Self)Release the memory of the private data when it is no longer being used.
version: unsafe extern "C" fn() -> u64Return the major DataFusion version number of this provider.
private_data: *mut c_voidInternal data. This is only to be accessed by the provider of the plan.
A ForeignPhysicalExtensionCodec should never attempt to access this data.
library_marker_id: extern "C" fn() -> usizeUtility to identify when FFI objects are accessed locally through the foreign interface.
Implementations§
Source§impl FFI_PhysicalExtensionCodec
impl FFI_PhysicalExtensionCodec
Sourcepub fn new(
codec: Arc<dyn PhysicalExtensionCodec + Send>,
runtime: Option<Handle>,
task_ctx_provider: impl Into<FFI_TaskContextProvider>,
) -> Self
pub fn new( codec: Arc<dyn PhysicalExtensionCodec + Send>, runtime: Option<Handle>, task_ctx_provider: impl Into<FFI_TaskContextProvider>, ) -> Self
Creates a new FFI_PhysicalExtensionCodec.
Trait Implementations§
Source§impl Clone for FFI_PhysicalExtensionCodec
impl Clone for FFI_PhysicalExtensionCodec
Source§impl Debug for FFI_PhysicalExtensionCodec
impl Debug for FFI_PhysicalExtensionCodec
Source§impl Drop for FFI_PhysicalExtensionCodec
impl Drop for FFI_PhysicalExtensionCodec
Source§impl From<&FFI_PhysicalExtensionCodec> for Arc<dyn PhysicalExtensionCodec>
impl From<&FFI_PhysicalExtensionCodec> for Arc<dyn PhysicalExtensionCodec>
Source§fn from(codec: &FFI_PhysicalExtensionCodec) -> Self
fn from(codec: &FFI_PhysicalExtensionCodec) -> Self
Converts to this type from the input type.
impl Send for FFI_PhysicalExtensionCodec
impl Sync for FFI_PhysicalExtensionCodec
Auto Trait Implementations§
impl Freeze for FFI_PhysicalExtensionCodec
impl RefUnwindSafe for FFI_PhysicalExtensionCodec
impl Unpin for FFI_PhysicalExtensionCodec
impl UnsafeUnpin for FFI_PhysicalExtensionCodec
impl UnwindSafe for FFI_PhysicalExtensionCodec
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
impl<T> Allocation for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more