Convert low-cardinality `String` columns to `DictEncoded` in-place.
(&mut self, max_cardinality: u32)
| 105 | |
| 106 | /// Convert low-cardinality `String` columns to `DictEncoded` in-place. |
| 107 | pub fn try_dict_encode_columns(&mut self, max_cardinality: u32) { |
| 108 | for col in &mut self.columns { |
| 109 | if let ColumnData::String { .. } = col |
| 110 | && let Some(encoded) = ColumnData::try_dict_encode(col, max_cardinality) |
| 111 | { |
| 112 | *col = encoded; |
| 113 | } |
| 114 | } |
| 115 | } |
| 116 | |
| 117 | /// Iterate rows as `Vec<Value>`. For scan/read operations. |
| 118 | pub fn iter_rows(&self) -> MemtableRowIter<'_> { |
no outgoing calls