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

Method deserializeTextCSV

src/DataTypes/Serializations/SerializationSketch.cpp:350–358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348
349
350void SerializationSketch::deserializeTextCSV(IColumn & column, ReadBuffer & istr, const FormatSettings & settings) const
351{
352 read(column, [&](ColumnSketchBinary::Chars & data) {
353 String encoded_string;
354 readCSVStringInto(encoded_string, istr, settings.csv);
355 String decodeString = decodeBase64(encoded_string);
356 data.insert(decodeString.begin(), decodeString.end());
357 });
358}
359
360/// serializeMemComparable guarantees the encoded value is in ascending order for comparison,
361/// encoding with the following rule:

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected