- 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.
推薦閱讀
- PPT,要你好看
- 網絡服務器架設(Windows Server+Linux Server)
- 計算機應用基礎·基礎模塊
- Natural Language Processing Fundamentals
- MCSA Windows Server 2016 Certification Guide:Exam 70-741
- Maya 2012從入門到精通
- 基于32位ColdFire構建嵌入式系統
- Splunk Operational Intelligence Cookbook
- 氣動系統裝調與PLC控制
- 過程控制系統
- Practical AWS Networking
- Cisco UCS Cookbook
- Microsoft Office 365:Exchange Online Implementation and Migration(Second Edition)
- Qt中的C++技術
- 白話機器學習算法