mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-28 06:36:18 +00:00
feat: introduce plugin setup functions with richer context (#8256)
feat: enrich plugin setup context
This commit is contained in:
@@ -348,6 +348,30 @@ impl FlownodeBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn opts(&self) -> &FlownodeOptions {
|
||||
&self.opts
|
||||
}
|
||||
|
||||
pub fn table_meta(&self) -> &TableMetadataManagerRef {
|
||||
&self.table_meta
|
||||
}
|
||||
|
||||
pub fn catalog_manager(&self) -> &CatalogManagerRef {
|
||||
&self.catalog_manager
|
||||
}
|
||||
|
||||
pub fn flow_metadata_manager(&self) -> &FlowMetadataManagerRef {
|
||||
&self.flow_metadata_manager
|
||||
}
|
||||
|
||||
pub fn frontend_client(&self) -> &Arc<FrontendClient> {
|
||||
&self.frontend_client
|
||||
}
|
||||
|
||||
pub fn set_plugins(&mut self, plugins: Plugins) {
|
||||
self.plugins = plugins;
|
||||
}
|
||||
|
||||
pub async fn build(mut self) -> Result<FlownodeInstance, Error> {
|
||||
// TODO(discord9): does this query engine need those?
|
||||
let query_engine_factory = QueryEngineFactory::new_with_plugins(
|
||||
|
||||
Reference in New Issue
Block a user