partition.h

来自「linux 下用c++ 开发的一个小型数据库系统」· C头文件 代码 · 共 30 行

H
30
字号
#ifndef PARTITION_H#define PARTITION_H#include "heapfile.h"// define if debug output wanted//#define DEBUGPARTclass Partition { public:  Partition(HeapFileScan *rel,              // name of heap file to partition	    const string & fileName,             // (base) name of heap file	    const int P,                      // number of partitions	    const int (*hashfcn)(const Record & rec,				 const int P),  	                               // hash function to use in partitioning	    string* &partName,           // names of partitioned heap files	    Status &status);            // create partitions of file  ~Partition();                         // destroy partitions private:  int P;                                // number of partitions  string *partName;                      // partition names};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?