-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotes
More file actions
57 lines (38 loc) · 789 Bytes
/
notes
File metadata and controls
57 lines (38 loc) · 789 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
48
49
50
51
52
53
54
55
56
57
TODO
- row()
- generateData
- scan
Every plan has -
datamember
- plan* as input
- iterator* as init
methods
-
Every iterator has
- Iterator* as input
methods
- next
- free
ScanPlan
- _count = total number of rows
- name
--------------
WitnessIterator
- WitnessPlan as _plan
- ScanIterator as _input
- _rows = 0
SortIterator
- produced 0
- consumed 0
- WitnessIterator as _input
- SortPlan as _plan
- starts next chain in its constructor
FilterIterator
- produced 0
- consumed 0
ScanIteraor
- _count = 0 (number of rows scanned currently)
- _plan = ScanPlan
Witness -> Sort -> Witness -> Filter -> Scan
init run
calls next of witness, which calls next of sort that it