Builds a new [BufferExec] with the provided capacity in bytes.
(input: Arc<dyn ExecutionPlan>, capacity: usize)
| 100 | impl BufferExec { |
| 101 | /// Builds a new [BufferExec] with the provided capacity in bytes. |
| 102 | pub fn new(input: Arc<dyn ExecutionPlan>, capacity: usize) -> Self { |
| 103 | let properties = PlanProperties::clone(input.properties()) |
| 104 | .with_scheduling_type(SchedulingType::Cooperative); |
| 105 | |
| 106 | Self { |
| 107 | input, |
| 108 | properties: Arc::new(properties), |
| 109 | capacity, |
| 110 | metrics: ExecutionPlanMetricsSet::new(), |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | /// Returns the input [ExecutionPlan] of this [BufferExec]. |
| 115 | pub fn input(&self) -> &Arc<dyn ExecutionPlan> { |
nothing calls this directly
no test coverage detected