mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-07-09 07:20:39 +00:00
feat: introduce plugin setup functions with richer context (#8256)
feat: enrich plugin setup context
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user