pub struct InlineProvider;Expand description
Provider for data: { rows: [...] } shapes. Materializes the inline rows
into a DataTable via DataTable::from_rows. Empty rows produce an
empty table — the same as the legacy inline path.
Implementations§
Trait Implementations§
Source§impl DataSourceProvider for InlineProvider
impl DataSourceProvider for InlineProvider
Source§fn fetch<'life0, 'async_trait>(
&'life0 self,
request: FetchRequest,
) -> Pin<Box<dyn Future<Output = Result<FetchResult, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch<'life0, 'async_trait>(
&'life0 self,
request: FetchRequest,
) -> Pin<Box<dyn Future<Output = Result<FetchResult, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch one source. The resolver handles caching + dedup + parallelism;
providers only see this single call per actual upstream invocation.
Source§fn fetch_batches<'life0, 'async_trait>(
&'life0 self,
request: FetchRequest,
) -> Pin<Box<dyn Future<Output = Result<FetchBatchResult, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fetch_batches<'life0, 'async_trait>(
&'life0 self,
request: FetchRequest,
) -> Pin<Box<dyn Future<Output = Result<FetchBatchResult, FetchError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Batch-oriented fetch. Returns multiple RecordBatches with a shared
schema, allowing the transform layer to register them into MemTable
without concatenation. Read more
Source§fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn shutdown<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Optional graceful shutdown hook. Called by
ChartML::shutdown() on
SSR request end / tab close. Default no-op so providers that hold no
pooled resources don’t have to implement it.Auto Trait Implementations§
impl Freeze for InlineProvider
impl RefUnwindSafe for InlineProvider
impl Send for InlineProvider
impl Sync for InlineProvider
impl Unpin for InlineProvider
impl UnsafeUnpin for InlineProvider
impl UnwindSafe for InlineProvider
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