A column contains multiple values in contiguous memory with a specified type.
更多...
|
| Column (const Column &other) |
|
| Column (Column &&other) |
|
| Column (const FieldMeta &meta, size_t size=DEFAULT_CAPACITY) |
|
| Column (AttrType attr_type, int attr_len, size_t size=DEFAULT_CAPACITY) |
|
void | init (const FieldMeta &meta, size_t size=DEFAULT_CAPACITY) |
|
void | init (AttrType attr_type, int attr_len, size_t size=DEFAULT_CAPACITY) |
|
void | init (const Value &value, size_t size) |
|
unique_ptr< Column > | clone () const |
|
void | reset () |
|
RC | append_one (const char *data) |
|
RC | append_value (const Value &val) |
|
RC | append (const char *data, int count) |
| 向 Column 追加写入数据 更多...
|
|
Value | get_value (int index) const |
| 获取 index 位置的列值
|
|
RC | copy_to (void *dest, int start_rows, int insert_rows) const |
|
int | data_len () const |
| 获取列数据的实际大小(字节)
|
|
char * | data () const |
|
string_t | add_text (const char *str, int len) |
|
void | reset_data () |
| 重置列数据,但不修改元信息
|
|
void | reference (const Column &column) |
| 引用另一个 Column
|
|
void | set_column_type (Type column_type) |
|
void | set_attr_type (AttrType attr_type) |
|
void | set_count (int count) |
|
int | count () const |
|
int | capacity () const |
|
AttrType | attr_type () const |
|
int | attr_len () const |
|
Type | column_type () const |
|
A column contains multiple values in contiguous memory with a specified type.