MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / extractValuesGeneric

Function extractValuesGeneric

src/DataTypes/DataTypeMapHelpers.cpp:223–236  ·  view source on GitHub ↗

Generic value extractor using virtual insertFrom / insertDefault.

Source from the content-addressed store, hash-verified

221
222/// Generic value extractor using virtual insertFrom / insertDefault.
223void 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.

Callers 1

extractValuesDispatchFunction · 0.85

Calls 4

reserveMethod · 0.45
sizeMethod · 0.45
insertFromMethod · 0.45
insertDefaultMethod · 0.45

Tested by

no test coverage detected