feat: introduce plugin setup functions with richer context (#8256)

feat: enrich plugin setup context
This commit is contained in:
Ning Sun
2026-06-08 14:53:08 +08:00
committed by GitHub
parent e7ce3ac0c7
commit fd64ced4da
17 changed files with 282 additions and 67 deletions

View File

@@ -202,6 +202,18 @@ impl DatanodeBuilder {
&self.kv_backend
}
pub fn meta_client(&self) -> Option<&MetaClientRef> {
self.meta_client.as_ref()
}
pub fn cache_registry(&self) -> Option<&Arc<LayeredCacheRegistry>> {
self.cache_registry.as_ref()
}
pub fn set_plugins(&mut self, plugins: Plugins) {
self.plugins = plugins;
}
pub fn with_table_provider_factory(&mut self, factory: TableProviderFactoryRef) -> &mut Self {
self.table_provider_factory = Some(factory);
self