本文整理汇总了C++中Catalog::get_tuple_size方法的典型用法代码示例。如果您正苦于以下问题:C++ Catalog::get_tuple_size方法的具体用法?C++ Catalog::get_tuple_size怎么用?C++ Catalog::get_tuple_size使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Catalog
的用法示例。
在下文中一共展示了Catalog::get_tuple_size方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1:
RC
row_t::init(table_t * host_table, uint64_t part_id, uint64_t row_id) {
_row_id = row_id;
_part_id = part_id;
this->table = host_table;
Catalog * schema = host_table->get_schema();
int tuple_size = schema->get_tuple_size();
data = (char *) _mm_malloc(sizeof(char) * tuple_size, 64);
return RCOK;
}
示例2:
RC
row_t::init(table_t * host_table, uint64_t part_id, uint64_t row_id) {
part_info = true;
_row_id = row_id;
_part_id = part_id;
this->table = host_table;
Catalog * schema = host_table->get_schema();
int tuple_size = schema->get_tuple_size();
data = (char *) mem_allocator.alloc(sizeof(char) * tuple_size, _part_id);
return RCOK;
}
示例3:
RC
row_t::init(table_t * host_table, uint64_t part_id, uint64_t row_id) {
part_info = true;
_row_id = row_id;
_part_id = part_id;
this->table = host_table;
Catalog * schema = host_table->get_schema();
tuple_size = schema->get_tuple_size();
#if SIM_FULL_ROW
data = (char *) mem_allocator.alloc(sizeof(char) * tuple_size);
#else
data = (char *) mem_allocator.alloc(sizeof(uint64_t) * 1);
#endif
return RCOK;
}