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

Method deserializeTextJSON

src/DataTypes/Serializations/SerializationEnum.cpp:78–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76
77template <typename Type>
78void SerializationEnum<Type>::deserializeTextJSON(IColumn & column, ReadBuffer & istr, const FormatSettings &) const
79{
80 if (!istr.eof() && *istr.position() != '"')
81 assert_cast<ColumnType &>(column).getData().push_back(readValue(istr));
82 else
83 {
84 std::string field_name;
85 readJSONString(field_name, istr);
86 assert_cast<ColumnType &>(column).getData().push_back(this->getValue(StringRef(field_name)));
87 }
88}
89
90template <typename Type>
91void SerializationEnum<Type>::serializeTextCSV(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings &) const

Callers

nothing calls this directly

Calls 7

readJSONStringFunction · 0.85
StringRefClass · 0.85
eofMethod · 0.45
positionMethod · 0.45
push_backMethod · 0.45
getDataMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected