Repository navigation
Expand file tree
/
Copy pathxml-plan-generic.xml
More file actions
116 lines (103 loc) · 3.47 KB
/
Copy pathxml-plan-generic.xml
File metadata and controls
116 lines (103 loc) · 3.47 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<plan>
<schema name="cardata">
<int name="type" />
<int name="time" progressing="true" />
<int name="vid" />
<double name="spd" />
<int name="xway" />
<int name="lane" />
<int name="dir" />
<int name="seg" />
<int name="pos" />
<int name="qid" />
<int name="s_init" />
<int name="s_end" />
<int name="dow" />
<int name="tod" />
<int name="day" />
</schema>
<c>I like comments!</c>
<stream name="first-part">
<c>Operator for reading in.</c>
<operator name="cardata-scan" class="niagarino.operator.Scan">
<schema name="cardata" />
<c>Some input file.</c>
<file>plan/cardatapoints.out.sorted</file>
</operator>
<operator name="select-type-0" class="niagarino.operator.Selection">
<object name="predicate" class="niagarino.plan.TestPredicate1" />
</operator>
<operator name="multiplex-type-0" class="niagarino.operator.Multiplex" />
</stream>
<stream name="lav-calculation" previous="first-part">
<operator name="window-avgsv" class="niagarino.operator.ValueWindow">
<size>60</size>
<slide>60</slide>
</operator>
<operator name="avgsv" class="niagarino.operator.OrderedAggregate">
<group>
<attribute name="vid" />
<attribute name="xway" />
<attribute name="seg" />
<attribute name="dir" />
</group>
<functions>
<avg attribute="spd" />
</functions>
</operator>
<operator name="avgsv-segid" class="niagarino.operator.Derive">
<object name="functions" class="niagarino.plan.TestDerivationFunction1" />
</operator>
<operator name="avgs" class="niagarino.operator.OrderedAggregate">
<group>
<attribute name="xway" />
<attribute name="dir" />
<attribute name="seg" />
<attribute name="segid" />
</group>
<functions>
<avg attribute="AVG(spd)" />
<count attribute="vid" />
</functions>
</operator>
<operator name="window-lav" class="niagarino.operator.ValueWindow">
<size>300</size>
<slide>60</slide>
</operator>
<operator name="lav" class="niagarino.operator.OrderedAggregate">
<group>
<attribute name="xway" />
<attribute name="dir" />
<attribute name="seg" />
<attribute name="segid" />
</group>
<functions>
<avg attribute="AVG(AVG(spd))" />
<avg attribute="COUNT(vid)" />
</functions>
</operator>
<operator name="lav-print" class="niagarino.operator.Print">
<type>devnull</type>
</operator>
</stream>
<stream name="accident-detection" previous="first-part">
<operator name="window-cars" class="niagarino.operator.ValueWindow">
<size>120</size>
<slide>60</slide>
</operator>
<operator name="aggregate-cars" class="niagarino.operator.OrderedAggregate">
<group>
<attribute name="vid" />
</group>
<functions>
<min attribute="pos" />
<max attribute="pos" />
<avg attribute="pos" />
<count attribute="pos" />
</functions>
</operator>
<operator name="accident-detection-print" class="niagarino.operator.Print">
<type>devnull</type>
</operator>
</stream>
</plan>