MCPcopy Create free account
hub / github.com/ByConity/ByConity / deserializeTextJSON

Method deserializeTextJSON

src/DataTypes/Serializations/SerializationSketch.cpp:323–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322
323void SerializationSketch::deserializeTextJSON(IColumn & column, ReadBuffer & istr, const FormatSettings &) const
324{
325 read(column, [&](ColumnSketchBinary::Chars & data) {
326 String encoded_string;
327 readJSONStringInto(encoded_string, istr);
328 String decodeString = decodeBase64(encoded_string);
329 data.insert(decodeString.begin(), decodeString.end());
330 });
331}
332
333
334void SerializationSketch::serializeTextXML(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings &) const

Callers

nothing calls this directly

Calls 6

readJSONStringIntoFunction · 0.85
decodeBase64Function · 0.85
readFunction · 0.70
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected