-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConfig.h
More file actions
44 lines (30 loc) · 956 Bytes
/
Config.h
File metadata and controls
44 lines (30 loc) · 956 Bytes
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
39
40
41
42
43
44
#ifndef _CONFIG_H
#define _CONFIG_H
using namespace std;
/* This file contains global definitions used throughout the project.
*/
// page size in database file
#define PAGE_SIZE 131072
// pipe buffer size
#define PIPE_BUFFERSIZE 10000
// maximum number of AND in a predicate
#define MAX_ANDS 20
// maximum number of operators in a function
#define MAX_FUNCTION_DEPTH 100
/* source of comparison operand:
* left relation in join
* right relation in join
* literal corresponds to constant
*/
enum Target {Left, Right, Literal};
// type of operand
enum Type {Integer, Float, String, Name};
// comparison operator
enum CompOperator {LessThan, GreaterThan, Equals};
// function operator
enum ArithOperator {PushInt, PushDouble, ToDouble, ToDouble2Down,
IntUnaryMinus, IntMinus, IntPlus, IntDivide, IntMultiply,
DblUnaryMinus, DblMinus, DblPlus, DblDivide, DblMultiply};
// file types
enum FileType {Heap, Sorted, Index};
#endif //_CONFIG_H