当前位置:网站首页>Flink学习6:编程模型
Flink学习6:编程模型
2022-07-04 03:47:00 【hzp666】

1.接口分层
Flink提供了不同级别的接口,最底层的是状态数据流处理,最高层是SQL

1.1 状态数据流处理
通过过程函数,被继承到DataStream API中

有状态数据流处理接口,
1.2 DataStream 和 DataSet API
核心API
DataStream 用来处理有界 和 无界数据流。
DataSet API 用来处理有界 数据流。
该接口提供了大量的通用组件

另外,
DataStream 集成更底层的函数
DataSet API 对有界数据提供了额外的支持

1.3 Table API
1.以表为中心,类似关系型数据库的二维表

2.提供可比较的操作,select, group by等

3.Table API 可以自定义函数进行扩展,但在表达能力上,比不上核心API。(不过Table API代码更简洁)
4.Table API是指定程序应该执行哪些操作,而不是精确的指定程序的执行步骤
5.Table API 在执行前会进行优化,另外Table API 和 DataStream , DataSet 之间可以无缝切换。所以在程序中可以混合只用。
1.4 SQL
Flink最高级封装接口就是 flink SQL
语法和表达能力上和Table API 类似,唯一的区别就是通过使用SQL查询语言实现程序。
SQL查询和Table API 交互密切,SQL可以直接在Table API中创建的表上查询

边栏推荐
- Katalon framework tests web (XXI) to obtain element attribute assertions
- SQL語句加强練習(MySQL8.0為例)
- Database SQL statement summary, continuous update
- The new data center helps speed up the construction of a digital economy with data as a key element
- 函数计算异步任务能力介绍 - 任务触发去重
- Katalon框架测试web(二十一)获取元素属性断言
- idea修改主体颜色
- The three-year revenue is 3.531 billion, and this Jiangxi old watch is going to IPO
- Recursive structure
- *. No main manifest attribute in jar
猜你喜欢

Detailed explanation of PPTC self recovery fuse

Exercices de renforcement des déclarations SQL (MySQL 8.0 par exemple)

Katalon框架测试web(二十六)自动发邮件

Katalon中控件的参数化

Mitsubishi M70 macro variable reading Mitsubishi M80 public variable acquisition Mitsubishi CNC variable reading acquisition Mitsubishi CNC remote tool compensation Mitsubishi machine tool online tool

Activiti7 task service - process variables (setvariable and setvariablelocal)

如何有效远程办公之我见 | 社区征文

*. No main manifest attribute in jar

EV6 helps the product matrix, and Kia is making efforts in the high-end market. The global sales target in 2022 is 3.15 million?

【罗技】m720
随机推荐
渗透实战-SQLServer提权
Introduction to asynchronous task capability of function calculation - task trigger de duplication
Which product is better if you want to go abroad to insure Xinguan?
Detailed explanation of PPTC self recovery fuse
What kind of experience is it when the Institute earns 20000 yuan a month!
数据库SQL语句汇总,持续更新......
Katalon framework tests web (XXI) to obtain element attribute assertions
Katalon使用script实现查询List大小
Apple submitted the new MAC model to the regulatory database before the spring conference
Recursive structure
1289_FreeRTOS中vTaskSuspend()接口实现分析
CUDA basic knowledge
Unity移动端游戏性能优化简谱之 画面表现与GPU压力的权衡
Two sides of the evening: tell me about the bloom filter and cuckoo filter? Application scenario? I'm confused..
Reduce function under functools
Pandora IOT development board learning (HAL Library) - Experiment 6 independent watchdog experiment (learning notes)
Class summation, shortest row
Redis cluster view the slots of each node
Simple dialogue system -- text classification using transformer
Support the first triggered go ticker