官术网_书友最值得收藏!

JSON

Another way of assembling applications without writing Java code is through JSON.

This format can be created manually, but it could also be used to generate the DAG from a different frontend, like a visual tool. Here is the word count written in JSON:

{ 
"displayName": "WordCountJSON",
"operators": [
{ "name": "input", ... }, { "name": "parse", ... },
{
"name": "count",
"class": "com.datatorrent.lib.algo.UniqueCounter",
"properties": { "com.datatorrent.lib.algo.UniqueCounter": { "cumulative":
false } }
},
{ "name": "console", ... } ],
"streams": [
{ "name": "lines",
"sinks": [ { "operatorName": "parse", "portName": "input" } ],
"source": { "operatorName": "input", "portName": "output" }
},
{ "name": "words", ... },
{ "name": "counts", ... }
]
}

Just like applications that are written in Java, the JSON files will be included in the application package, along with the operator dependencies. Upon launch of the application, the Apex client will parse these files and translate them into a native DAG representation.

主站蜘蛛池模板: 政和县| 阳东县| 塔城市| 泗阳县| 南宫市| 金沙县| 武山县| 贵南县| 广安市| 临颍县| 读书| 中宁县| 炎陵县| 天水市| 灯塔市| 吴江市| 哈巴河县| 新泰市| 荣成市| 文昌市| 巧家县| 延川县| 定结县| 庆云县| 那曲县| 台州市| 肥城市| 卓资县| 白水县| 西乌珠穆沁旗| 蒙自县| 德格县| 都匀市| 洞口县| 齐河县| 宁晋县| 得荣县| 金溪县| 黑山县| 大名县| 许昌市|