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

BufferPool的管理类 更多...

#include <disk_buffer_pool.h>

Public 成员函数

 BufferPoolManager (int memory_size=0)
 
RC create_file (const char *file_name)
 
RC open_file (const char *file_name, DiskBufferPool *&bp)
 
RC close_file (const char *file_name)
 
RC flush_page (Frame &frame)
 

静态 Public 成员函数

static void set_instance (BufferPoolManager *bpm)
 
static BufferPoolManagerinstance ()
 

Private 属性

BPFrameManager frame_manager_ {"BufPool"}
 
common::Mutex lock_
 
std::unordered_map< std::string, DiskBufferPool * > buffer_pools_
 
std::unordered_map< int, DiskBufferPool * > fd_buffer_pools_
 

详细描述

BufferPool的管理类

成员函数说明

◆ create_file()

RC BufferPoolManager::create_file ( const char *  file_name)

Here don't care about the failure


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