-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.sum-n-tuples.xml
54 lines (48 loc) · 1.55 KB
/
test.sum-n-tuples.xml
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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<query xmlns="http://uzh.ch/ddis/katts/query">
<!-- Send a heart beat every 100 milliseconds. -->
<heartBeat interval="100" />
<!-- Before the query is deployed the data files are copied to all nodes
with rsync. -->
<nTupleFileSource id="tickerSource">
<files>
<file csvFieldDelimiter="," mimeType="text/comma-separated-values"
path="data/test.sum.n-tuples">
<fields>
<field from="1" to="x" />
</fields>
</file>
</files>
<numberOfFields>5</numberOfFields>
</nTupleFileSource>
<!-- Filter on an n-tuple -->
<nTupleFilter applyOnSource="tickerSource" id="NTupleFilter_TickerPRC">
<conditions>
<!-- Constant conditions restrict the value of a certain field. -->
<constantCondition restriction="Sales" item="4" />
<variableCondition>
<field>1</field>
<field>2</field>
<field>3</field>
</variableCondition>
</conditions>
<!-- In this section, the binding of an n-tuple to variable names is defined. -->
<produces>
<!-- The id of the stream the bindings are emitted to. -->
<stream id="tickerPrice">
<!-- List of variables for the binding -->
<variable type="xs:double" name="ticker_price"
referencesTo="3" />
<variable type="xs:string" name="ticker_id" referencesTo="0" />
</stream>
</produces>
</nTupleFilter>
<fileOutput filePath="data/output.csv" id="fileOutput">
<consumes>
<stream maxBufferSize="5" streamId="tickerPrice">
<shuffleGrouping />
</stream>
</consumes>
</fileOutput>
<termination />
</query>