Searched refs:json_column_value (Results 1 – 2 of 2) sorted by relevance
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/meta/ |
D | shard_column.cc | 135 auto json_column_value = columns_json[column_name]; in GetColumnFromJson() local 137 json_column_value.is_string() || json_column_value.is_number(), in GetColumnFromJson() 138 "Invalid data, column value [" + json_column_value.dump() + "] is not string or number."); in GetColumnFromJson() 141 return GetFloat<float>(data_ptr, json_column_value, false); in GetColumnFromJson() 144 return GetFloat<double>(data_ptr, json_column_value, true); in GetColumnFromJson() 147 return GetInt<int32_t>(data_ptr, json_column_value); in GetColumnFromJson() 150 return GetInt<int64_t>(data_ptr, json_column_value); in GetColumnFromJson() 155 if (json_column_value.is_string()) { in GetColumnFromJson() 156 tmp_string = json_column_value.get<string>(); in GetColumnFromJson() 158 tmp_string = json_column_value.dump(); in GetColumnFromJson() [all …]
|
/third_party/mindspore/mindspore/ccsrc/minddata/mindrecord/include/ |
D | shard_column.h | 112 …Status GetFloat(std::unique_ptr<unsigned char[]> *data_ptr, const json &json_column_value, bool us… 116 Status GetInt(std::unique_ptr<unsigned char[]> *data_ptr, const json &json_column_value);
|