Struct arrow_udf_wasm::Runtime
source · pub struct Runtime { /* private fields */ }Expand description
The WASM UDF runtime.
This runtime contains an instance pool and can be shared by multiple threads.
Implementations§
source§impl Runtime
impl Runtime
sourcepub fn with_config(binary: &[u8], config: Config) -> Result<Self>
pub fn with_config(binary: &[u8], config: Config) -> Result<Self>
Create a new UDF runtime from a WASM binary with configuration.
sourcepub fn call(&self, name: &str, input: &RecordBatch) -> Result<RecordBatch>
pub fn call(&self, name: &str, input: &RecordBatch) -> Result<RecordBatch>
Call a function.
sourcepub fn call_table_function<'a>(
&'a self,
name: &'a str,
input: &'a RecordBatch
) -> Result<impl Iterator<Item = Result<RecordBatch>> + 'a>
pub fn call_table_function<'a>( &'a self, name: &'a str, input: &'a RecordBatch ) -> Result<impl Iterator<Item = Result<RecordBatch>> + 'a>
Call a table function.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Runtime
impl Send for Runtime
impl Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.