(
&self,
partition: usize,
_context: Arc<TaskContext>,
)
| 76 | |
| 77 | impl DataSource for MemorySourceConfig { |
| 78 | fn open( |
| 79 | &self, |
| 80 | partition: usize, |
| 81 | _context: Arc<TaskContext>, |
| 82 | ) -> Result<SendableRecordBatchStream> { |
| 83 | Ok(Box::pin(cooperative( |
| 84 | MemoryStream::try_new( |
| 85 | self.partitions[partition].clone(), |
| 86 | Arc::clone(&self.projected_schema), |
| 87 | self.projection.clone(), |
| 88 | )? |
| 89 | .with_fetch(self.fetch), |
| 90 | ))) |
| 91 | } |
| 92 | |
| 93 | fn fmt_as(&self, t: DisplayFormatType, f: &mut fmt::Formatter) -> fmt::Result { |
| 94 | match t { |
no test coverage detected