pub struct InitInfo(/* private fields */);
Expand description
An interface to store and retrieve data during the function init stage
Implementations§
Source§impl InitInfo
impl InitInfo
Sourcepub unsafe fn set_init_data(
&self,
data: *mut c_void,
freeer: Option<unsafe extern "C" fn(*mut c_void)>,
)
pub unsafe fn set_init_data( &self, data: *mut c_void, freeer: Option<unsafe extern "C" fn(*mut c_void)>, )
§Safety
Sourcepub fn get_column_indices(&self) -> Vec<idx_t>
pub fn get_column_indices(&self) -> Vec<idx_t>
Returns the column indices of the projected columns at the specified positions.
This function must be used if projection pushdown is enabled to figure out which columns to emit.
returns: The column indices at which to get the projected column index
Sourcepub fn get_extra_info<T>(&self) -> *const T
pub fn get_extra_info<T>(&self) -> *const T
Retrieves the extra info of the function as set in TableFunction::set_extra_info
§Arguments
returns
: The extra info
Sourcepub fn get_bind_data<T>(&self) -> *const T
pub fn get_bind_data<T>(&self) -> *const T
Gets the bind data set by BindInfo::set_bind_data
during the bind.
Note that the bind data should be considered as read-only. For tracking state, use the init data instead.
§Arguments
returns
: The bind data object
Sourcepub fn set_max_threads(&self, max_threads: idx_t)
pub fn set_max_threads(&self, max_threads: idx_t)
Sets how many threads can process this table function in parallel (default: 1)
§Arguments
max_threads
: The maximum amount of threads that can process this table function
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitInfo
impl RefUnwindSafe for InitInfo
impl !Send for InitInfo
impl !Sync for InitInfo
impl Unpin for InitInfo
impl UnwindSafe for InitInfo
Blanket Implementations§
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