-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathAggregate.cpp
57 lines (43 loc) · 1.21 KB
/
Aggregate.cpp
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
48
49
50
51
52
53
54
55
56
57
#include <db/Aggregate.h>
#include <db/IntegerAggregator.h>
#include <db/StringAggregator.h>
using namespace db;
std::optional<Tuple> Aggregate::fetchNext() {
// TODO pa3.2: some code goes here
}
Aggregate::Aggregate(DbIterator *child, int afield, int gfield, Aggregator::Op aop) {
// TODO pa3.2: some code goes here
}
int Aggregate::groupField() {
// TODO pa3.2: some code goes here
}
std::string Aggregate::groupFieldName() {
// TODO pa3.2: some code goes here
}
int Aggregate::aggregateField() {
// TODO pa3.2: some code goes here
}
std::string Aggregate::aggregateFieldName() {
// TODO pa3.2: some code goes here
}
Aggregator::Op Aggregate::aggregateOp() {
// TODO pa3.2: some code goes here
}
void Aggregate::open() {
// TODO pa3.2: some code goes here
}
void Aggregate::rewind() {
// TODO pa3.2: some code goes here
}
const TupleDesc &Aggregate::getTupleDesc() const {
// TODO pa3.2: some code goes here
}
void Aggregate::close() {
// TODO pa3.2: some code goes here
}
std::vector<DbIterator *> Aggregate::getChildren() {
// TODO pa3.2: some code goes here
}
void Aggregate::setChildren(std::vector<DbIterator *> children) {
// TODO pa3.2: some code goes here
}