pub trait SchemaProvider:
Send
+ Sync
+ Debug {
// Required method
fn get_schema<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Schema, ArrowEncodingError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Provides Arrow schema for encoding.
Sinks can implement this trait to provide custom schema fetching logic.
Required Methods§
Sourcefn get_schema<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Schema, ArrowEncodingError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_schema<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Schema, ArrowEncodingError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Fetch the Arrow schema from the data store.
This is called during sink configuration build phase to fetch the schema once at startup, rather than at runtime.