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

Method open

datafusion/physical-plan/src/test.rs:181–194  ·  view source on GitHub ↗
(
        &self,
        partition: usize,
        _context: Arc<TaskContext>,
    )

Source from the content-addressed store, hash-verified

179
180impl TestMemoryExec {
181 fn open(
182 &self,
183 partition: usize,
184 _context: Arc<TaskContext>,
185 ) -> Result<SendableRecordBatchStream> {
186 Ok(Box::pin(
187 MemoryStream::try_new(
188 self.partitions[partition].clone(),
189 Arc::clone(&self.projected_schema),
190 self.projection.clone(),
191 )?
192 .with_fetch(self.fetch),
193 ))
194 }
195
196 fn compute_properties(&self) -> PlanProperties {
197 PlanProperties::new(

Callers 1

executeMethod · 0.45

Calls 2

with_fetchMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected