- Learning Apache Apex
- Thomas Weise Munagala V. Ramanath David Yan Kenneth Knowles
- 157字
- 2021-07-02 22:38:37
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.
推薦閱讀
- Ansible Configuration Management
- Cloud Analytics with Microsoft Azure
- 機器學習與大數據技術
- 物聯網與云計算
- 21天學通C++
- 網絡綜合布線技術
- AWS Certified SysOps Administrator:Associate Guide
- Implementing Splunk 7(Third Edition)
- Blender 3D Printing by Example
- 突破,Objective-C開發速學手冊
- 大數據技術基礎:基于Hadoop與Spark
- 嵌入式GUI開發設計
- 會聲會影X4中文版從入門到精通
- 生成對抗網絡項目實戰
- 網站規劃與網頁設計