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
{
"id": "pipeline_with_structs",
"target": "x86-64-unknown-linux-gnu",
"mode": "debug",
"nodes": [
{
"id": "node_1",
"parallelism": 1,
"kind": {
"Source": {
"source_type": {
"Scalar": "U32"
},
"successors": [
{
"Local": {
"id": "node_2"
}
}
],
"kind": {
"Socket": { "addr": "127.0.0.1:5002", "kind": "udp"}
}
}
}
},
{
"id": "node_2",
"parallelism": 1,
"kind": {
"Task": {
"input_type": {
"Scalar": "U32"
},
"output_type": {
"Struct": {
"id": "MyStruct",
"field_tys" : [
{
"Scalar": "U32"
},
{
"Scalar": "U32"
}
]
}
},
"weld_code": "|x: u32| {x, 10}",
"successors": [
{
"Local": {
"id": "node_3"
}
}
],
"predecessor": "node_1",
"kind": "Map"
}
}
},
{
"id": "node_3",
"parallelism": 1,
"kind": {
"Sink": {
"sink_type": {
"Struct": {
"id": "MyStruct",
"field_tys" : [
{
"Scalar": "U32"
},
{
"Scalar": "I32"
}
]
}
},
"predecessor": "node_2",
"kind": {
"Socket": { "addr": "127.0.0.1:9500", "kind": "udp"}
}
}
}
}
]
}