13#include "common/sys/rc.h"
14#include "common/type/data_type.h"
31 RC set_value_from_str(
Value &val,
const string &data)
const override;
固定长度的字符串类型
Definition: char_type.h:21
int cast_cost(AttrType type) override
计算从 type 到 attr_type 的隐式转换的 cost,如果无法转换,返回 INT32_MAX
Definition: char_type.cpp:37
int compare(const Value &left, const Value &right) const override
Definition: char_type.cpp:16
RC to_string(const Value &val, string &result) const override
将 val 转换为 string,并将结果保存到 result 中
Definition: char_type.cpp:45
RC cast_to(const Value &val, AttrType type, Value &result) const override
将 val 转换为 type 类型,并将结果保存到 result 中
Definition: char_type.cpp:29
Definition: data_type.h:28
属性的值
Definition: value.h:30