MCPcopy Create free account
hub / github.com/apache/datafusion / new

Method new

datafusion/physical-plan/src/buffer.rs:102–112  ·  view source on GitHub ↗

Builds a new [BufferExec] with the provided capacity in bytes.

(input: Arc<dyn ExecutionPlan>, capacity: usize)

Source from the content-addressed store, hash-verified

100impl 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> {

Callers

nothing calls this directly

Calls 8

newFunction · 0.85
with_scheduling_typeMethod · 0.80
is_errMethod · 0.80
propertiesMethod · 0.45
sendMethod · 0.45
sizeMethod · 0.45
try_growMethod · 0.45
minMethod · 0.45

Tested by

no test coverage detected