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

Method deserializeTextJSON

src/DataTypes/Serializations/SerializationString.cpp:330–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

328
329
330void SerializationString::deserializeTextJSON(IColumn & column, ReadBuffer & istr, const FormatSettings & settings) const
331{
332 if (settings.json.read_objects_as_strings && !istr.eof() && *istr.position() == '{')
333 {
334 String field;
335 readJSONObjectPossiblyInvalid(field, istr);
336 read(column, [&](ColumnString::Chars & data) { data.insert(field.begin(), field.end()); });
337 }
338 else
339 read(column, [&](ColumnString::Chars & data) { readJSONStringInto(data, istr); });
340}
341
342
343void SerializationString::serializeTextXML(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings &) const

Callers

nothing calls this directly

Calls 8

readJSONStringIntoFunction · 0.85
readFunction · 0.70
eofMethod · 0.45
positionMethod · 0.45
insertMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected