{
"id": "basic_dataflow",
"target": "x86-64-unknown-linux-gnu",
"nodes": [
{
"id": "node_1",
"parallelism": 1,
"kind": {
"Source": {
"source_type": {
"Scalar": "U32"
},
"successors": [
{
"Local": {
"id": "node_2"
}
}
],
"kind": {
"Socket": { "addr": "127.0.0.1:5000", "kind": "udp"}
}
}
}
},
{
"id": "node_2",
"parallelism": 1,
"kind": {
"Task": {
"input_type": {
"Scalar": "U32"
},
"output_type": {
"Scalar": "U32"
},
"weld_code": "|x: u32| x + u32(5)",
"successors": [
{
"Local": {
"id": "node_3"
}
}
],
"predecessor": "node_1",
"kind": "Map"
}
}
},
{
"id": "node_3",
"parallelism": 1,
"kind": {
"Sink": {
"sink_type": {
"Scalar": "U32"
},
"predecessor": "node_2",
"kind": "Debug"
}
}
}
]
}