Get a reference to a column's array by name.
(&self, name: &str)
| 628 | |
| 629 | /// Get a reference to a column's array by name. |
| 630 | pub fn column_by_name(&self, name: &str) -> Option<&ArrayRef> { |
| 631 | self.schema() |
| 632 | .column_with_name(name) |
| 633 | .map(|(index, _)| &self.columns[index]) |
| 634 | } |
| 635 | |
| 636 | /// Get a reference to all columns in the record batch. |
| 637 | pub fn columns(&self) -> &[ArrayRef] { |