-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDatabaseProject.h
More file actions
38 lines (29 loc) · 1.08 KB
/
DatabaseProject.h
File metadata and controls
38 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef DATABASE_PROJECT_H
#define DATABASE_PROJECT_H
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <string>
#include <vector>
#include "dbtproj.h"
#if defined(WIN32) || defined(_WIN32)
#define FILE_READ "rb"
#define FILE_WRITE "wb"
#else
#define FILE_READ "r"
#define FILE_WRITE "w"
#endif
/*The project was tested both in Linux and Windows laptops.
However, our only desktop runs on Windows, so, the testing
of Merge Join with 2 files of 10GB each was done on a Windows
machine.*/
std::string createFileName(unsigned fileNumber);
void printRecord(record_t r);
/*bool read(int number, unsigned b,std::vector<std::string>& names,std::vector<FILE*>&
currentFiles,block_t *buffer);
bool readFileBlock(int number, unsigned b, std::vector<std::string>& names,
std::vector<FILE*>& files,block_t *buffer);
bool readBlock(unsigned b,std::vector<FILE*>& currentFiles,block_t *buffer);
bool readOpenFileBlock(unsigned b, std::vector<FILE*>&
currentFiles,block_t *buffer,std::vector<std::string>& names);*/
#endif // DATABASE_PROJECT_H