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

Method serializeText

src/DataTypes/Serializations/SerializationEnum.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14template <typename Type>
15void SerializationEnum<Type>::serializeText(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings &) const
16{
17 writeString(ref_enum_values.getNameForValue(assert_cast<const ColumnType &>(column).getData()[row_num]), ostr);
18}
19
20template <typename Type>
21void SerializationEnum<Type>::serializeTextEscaped(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings &) const

Callers

nothing calls this directly

Calls 3

getNameForValueMethod · 0.80
writeStringFunction · 0.50
getDataMethod · 0.45

Tested by

no test coverage detected