Set column projection by name. Output order follows the caller-specified order. Unknown or duplicate names cause `new_read()` to fail; an empty list is a valid zero-column projection.
(&mut self, columns: &[&str])
| 136 | /// Unknown or duplicate names cause `new_read()` to fail; an empty list is a valid |
| 137 | /// zero-column projection. |
| 138 | pub fn with_projection(&mut self, columns: &[&str]) -> &mut Self { |
| 139 | self.projected_fields = Some(columns.iter().map(|c| (*c).to_string()).collect()); |
| 140 | self |
| 141 | } |
| 142 | |
| 143 | /// Set a filter predicate for scan planning and conservative read pruning. |
| 144 | /// |