(
&self,
reader: R,
projection: Option<Vec<usize>>,
)
| 55 | } |
| 56 | |
| 57 | fn open<R: std::io::BufRead>( |
| 58 | &self, |
| 59 | reader: R, |
| 60 | projection: Option<Vec<usize>>, |
| 61 | ) -> Result<Reader<R>> { |
| 62 | let mut builder = ReaderBuilder::new() |
| 63 | .with_batch_size(self.batch_size.expect("Batch size must set before open")); |
| 64 | if let Some(projection) = projection { |
| 65 | builder = builder.with_projection(projection); |
| 66 | } |
| 67 | builder.build(reader).map_err(Into::into) |
| 68 | } |
| 69 | |
| 70 | fn projected_file_schema(&self) -> SchemaRef { |
| 71 | let file_schema = self.table_schema.file_schema(); |
nothing calls this directly
no test coverage detected