-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTable.cc
More file actions
47 lines (38 loc) · 764 Bytes
/
Table.cc
File metadata and controls
47 lines (38 loc) · 764 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
45
46
47
#ifndef _TABLE_C
#define _TABLE_C
#include "Table.h"
using namespace std;
TableRecord::TableRecord(int _number_of_tuples, string _path){
number_of_tuples = _number_of_tuples;
path = _path;
}
TableRecord::TableRecord(int _number_of_tuples, string _path, Schema& _s){
number_of_tuples = _number_of_tuples;
path = _path;
s = _s;
}
void TableRecord::set_number_of_tuples(const int _number_of_tuples)
{
number_of_tuples = _number_of_tuples;
}
void TableRecord::set_data_path(const string _path)
{
path = _path;
}
void TableRecord::set_schema(const Schema& _s)
{
s = _s;
}
int& TableRecord::get_number_of_tuples()
{
return number_of_tuples;
}
string& TableRecord::get_data_path()
{
return path;
}
Schema& get_Schema()
{
return s;
}
#endif