Generic value extractor using virtual insertFrom / insertDefault.
| 221 | |
| 222 | /// Generic value extractor using virtual insertFrom / insertDefault. |
| 223 | void extractValuesGeneric( |
| 224 | const IColumn & values_column, |
| 225 | IColumn & result, |
| 226 | const PaddedPODArray<size_t> & matched_positions) |
| 227 | { |
| 228 | result.reserve(result.size() + matched_positions.size()); |
| 229 | for (size_t pos : matched_positions) |
| 230 | { |
| 231 | if (pos != KEY_NOT_FOUND) |
| 232 | result.insertFrom(values_column, pos); |
| 233 | else |
| 234 | result.insertDefault(); |
| 235 | } |
| 236 | } |
| 237 | |
| 238 | /// Specialized value extractor for ColumnVector<T>, with optional Nullable support. |
| 239 | /// If src_null_map / dst_null_map are non-null, propagates null flags. |
no test coverage detected