Get a single row by index as `Vec `.
(&self, row_idx: usize)
| 125 | |
| 126 | /// Get a single row by index as `Vec<Value>`. |
| 127 | pub fn get_row(&self, row_idx: usize) -> Option<Vec<Value>> { |
| 128 | if row_idx >= self.row_count { |
| 129 | return None; |
| 130 | } |
| 131 | let mut row = Vec::with_capacity(self.columns.len()); |
| 132 | for col in &self.columns { |
| 133 | row.push(col.get_value(row_idx)); |
| 134 | } |
| 135 | Some(row) |
| 136 | } |
| 137 | |
| 138 | /// Truncate the memtable to `n` rows, discarding all rows beyond that point. |
| 139 | /// |
no test coverage detected