We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e671e0 commit f971a7cCopy full SHA for f971a7c
src/distributed_planner/task_estimator.rs
@@ -60,6 +60,26 @@ impl TaskEstimator for usize {
60
}
61
62
63
+impl TaskEstimator for Arc<dyn TaskEstimator> {
64
+ fn estimate_tasks(
65
+ &self,
66
+ plan: &Arc<dyn ExecutionPlan>,
67
+ cfg: &ConfigOptions,
68
+ ) -> Option<TaskEstimation> {
69
+ self.as_ref().estimate_tasks(plan, cfg)
70
+ }
71
+}
72
+
73
+impl TaskEstimator for Arc<dyn TaskEstimator + Send + Sync> {
74
75
76
77
78
79
80
81
82
83
impl<F: Fn(&Arc<dyn ExecutionPlan>, &ConfigOptions) -> Option<TaskEstimation>> TaskEstimator for F {
84
fn estimate_tasks(
85
&self,
0 commit comments