| 76 | |
| 77 | template <typename Type> |
| 78 | void 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 | |
| 90 | template <typename Type> |
| 91 | void SerializationEnum<Type>::serializeTextCSV(const IColumn & column, size_t row_num, WriteBuffer & ostr, const FormatSettings &) const |