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

Method serializeTextCSV

src/DataTypes/Serializations/SerializationEnum.cpp:178–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176
177template <typename Type>
178void SerializationEnum<Type>::serializeTextCSV(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings &) const
179{
180 writeCSVString(ref_enum_values.getNameForValue(assert_cast<const ColumnType &>(column).getData()[row_num]), ostr);
181}
182
183template <typename Type>
184void SerializationEnum<Type>::deserializeTextCSV(IColumn & column, ReadBuffer & istr, const FormatSettings & settings) const

Callers

nothing calls this directly

Calls 3

writeCSVStringFunction · 0.85
getNameForValueMethod · 0.80
getDataMethod · 0.45

Tested by

no test coverage detected