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

Method serializeTextJSON

src/DataTypes/Serializations/SerializationEnum.cpp:132–135  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131template <typename Type>
132void SerializationEnum<Type>::serializeTextJSON(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings & settings) const
133{
134 writeJSONString(ref_enum_values.getNameForValue(assert_cast<const ColumnType &>(column).getData()[row_num]), ostr, settings);
135}
136
137template <typename Type>
138void SerializationEnum<Type>::serializeTextXML(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings &) const

Callers

nothing calls this directly

Calls 3

writeJSONStringFunction · 0.85
getNameForValueMethod · 0.80
getDataMethod · 0.45

Tested by

no test coverage detected