pub trait Engine: AsAny {
// Required methods
fn evaluation_handler(&self) -> Arc<dyn EvaluationHandler> ⓘ;
fn storage_handler(&self) -> Arc<dyn StorageHandler> ⓘ;
fn json_handler(&self) -> Arc<dyn JsonHandler> ⓘ;
fn parquet_handler(&self) -> Arc<dyn ParquetHandler> ⓘ;
// Provided method
fn get_metrics_reporter(&self) -> Option<Arc<dyn MetricsReporter>> { ... }
}Expand description
The Engine trait encapsulates all the functionality an engine or connector needs to provide
to the Delta Kernel in order to read the Delta table.
Engines/Connectors are expected to pass an implementation of this trait when reading a Delta table.
Required Methods§
Sourcefn evaluation_handler(&self) -> Arc<dyn EvaluationHandler> ⓘ
fn evaluation_handler(&self) -> Arc<dyn EvaluationHandler> ⓘ
Get the connector provided EvaluationHandler.
Sourcefn storage_handler(&self) -> Arc<dyn StorageHandler> ⓘ
fn storage_handler(&self) -> Arc<dyn StorageHandler> ⓘ
Get the connector provided StorageHandler
Sourcefn json_handler(&self) -> Arc<dyn JsonHandler> ⓘ
fn json_handler(&self) -> Arc<dyn JsonHandler> ⓘ
Get the connector provided JsonHandler.
Sourcefn parquet_handler(&self) -> Arc<dyn ParquetHandler> ⓘ
fn parquet_handler(&self) -> Arc<dyn ParquetHandler> ⓘ
Get the connector provided ParquetHandler.
Provided Methods§
Sourcefn get_metrics_reporter(&self) -> Option<Arc<dyn MetricsReporter>>
fn get_metrics_reporter(&self) -> Option<Arc<dyn MetricsReporter>>
Get the connector provided MetricsReporter for metrics collection.
Returns an optional reporter that will receive metric events from Delta operations. The default implementation returns None (no metrics reporting).