MiniOB 1
MiniOB is one mini database, helping developers to learn how database works.
载入中...
搜索中...
未找到
Public 成员函数 | Private 属性 | 所有成员列表
Chunk类 参考

A Chunk represents a set of columns. 更多...

#include <chunk.h>

Public 成员函数

 Chunk (const Chunk &)=delete
 
 Chunk (Chunk &&)=delete
 
int column_num () const
 
Columncolumn (size_t idx)
 
Columncolumn_ptr (size_t idx)
 
int column_ids (size_t i)
 
void add_column (unique_ptr< Column > col, int col_id)
 
RC reference (Chunk &chunk)
 
int rows () const
 获取 Chunk 中的行数
 
int capacity () const
 获取 Chunk 的容量
 
Value get_value (int col_idx, int row_idx) const
 Chunk 中获得指定行指定列的 Value 更多...
 
void reset_data ()
 重置 Chunk 中的数据,不会修改 Chunk 的列属性。
 
void reset ()
 

Private 属性

vector< unique_ptr< Column > > columns_
 
vector< int > column_ids_
 

详细描述

A Chunk represents a set of columns.

成员函数说明

◆ get_value()

Value Chunk::get_value ( int  col_idx,
int  row_idx 
) const
inline

Chunk 中获得指定行指定列的 Value

参数
col_idx列索引
row_idx行索引
返回
Value
注解
没有检查 col_idx 和 row_idx 是否越界

该类的文档由以下文件生成: