#[repr(C)]pub struct FFI_PhysicalOptimizerRule {
pub optimize: unsafe extern "C" fn(_: &Self, plan: &FFI_ExecutionPlan, config: FFI_ConfigOptions) -> FFI_Result<FFI_ExecutionPlan>,
pub name: unsafe extern "C" fn(&Self) -> String,
pub schema_check: unsafe extern "C" fn(&Self) -> bool,
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,
}Expand description
A stable struct for sharing PhysicalOptimizerRule across FFI boundaries.
Fields§
§optimize: unsafe extern "C" fn(_: &Self, plan: &FFI_ExecutionPlan, config: FFI_ConfigOptions) -> FFI_Result<FFI_ExecutionPlan>§name: unsafe extern "C" fn(&Self) -> String§schema_check: unsafe extern "C" fn(&Self) -> bool§clone: unsafe extern "C" fn(plan: &Self) -> SelfUsed to create a clone on the rule. 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 rule.
private_data: *mut c_voidInternal data. This is only to be accessed by the provider of the rule.
A ForeignPhysicalOptimizerRule 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_PhysicalOptimizerRule
impl FFI_PhysicalOptimizerRule
Sourcepub fn new(
rule: Arc<dyn PhysicalOptimizerRule + Send + Sync>,
runtime: Option<Handle>,
) -> Self
pub fn new( rule: Arc<dyn PhysicalOptimizerRule + Send + Sync>, runtime: Option<Handle>, ) -> Self
Creates a new FFI_PhysicalOptimizerRule.
Trait Implementations§
Source§impl Clone for FFI_PhysicalOptimizerRule
impl Clone for FFI_PhysicalOptimizerRule
Source§impl Debug for FFI_PhysicalOptimizerRule
impl Debug for FFI_PhysicalOptimizerRule
Source§impl Drop for FFI_PhysicalOptimizerRule
impl Drop for FFI_PhysicalOptimizerRule
Source§impl From<&FFI_PhysicalOptimizerRule> for Arc<dyn PhysicalOptimizerRule + Send + Sync>
impl From<&FFI_PhysicalOptimizerRule> for Arc<dyn PhysicalOptimizerRule + Send + Sync>
Source§fn from(rule: &FFI_PhysicalOptimizerRule) -> Self
fn from(rule: &FFI_PhysicalOptimizerRule) -> Self
Converts to this type from the input type.
impl Send for FFI_PhysicalOptimizerRule
impl Sync for FFI_PhysicalOptimizerRule
Auto Trait Implementations§
impl Freeze for FFI_PhysicalOptimizerRule
impl RefUnwindSafe for FFI_PhysicalOptimizerRule
impl Unpin for FFI_PhysicalOptimizerRule
impl UnsafeUnpin for FFI_PhysicalOptimizerRule
impl UnwindSafe for FFI_PhysicalOptimizerRule
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