当前位置:网站首页>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中创建的表上查询

边栏推荐
- A review of reverse reinforcement learning at Virginia Tech (VT)
- 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?
- 【读书会第十三期】视频文件的封装格式
- 还原窗口位置的微妙之处
- 疫情来袭--远程办公之思考|社区征文
- pytest多进程/多线程执行测试用例
- Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure
- JVM family -- heap analysis
- Brief explanation of depth first search (with basic questions)
- Reduce function under functools
猜你喜欢

Katalon framework test web (XXVI) automatic email

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?

The maximum expiration time of client secret in azure ad application registration is modified to 2 years

Illustrated network: what is the hot backup router protocol HSRP?

【CSRF-01】跨站请求伪造漏洞基础原理及攻防

AAAI2022 | Word Embeddings via Causal Inference: Gender Bias Reducing and Semantic Information Preserving

Perf simple process for multithreaded profile

LNK2038 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MDd_DynamicDebug”(main.obj 中)

MySQL one master multiple slaves + linear replication

Typical applications of minimum spanning tree
随机推荐
Which product is better if you want to go abroad to insure Xinguan?
What kind of experience is it when the Institute earns 20000 yuan a month!
【CSRF-01】跨站请求伪造漏洞基础原理及攻防
【读书会第十三期】视频文件的封装格式
深入浅出对话系统——使用Transformer进行文本分类
Simple dialogue system -- text classification using transformer
【.NET+MQTT】.NET6 環境下實現MQTT通信,以及服務端、客戶端的雙邊消息訂閱與發布的代碼演示
STM32 external DHT11 display temperature and humidity
pytest多进程/多线程执行测试用例
vim正确加区间注释
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?
Deep thinking on investment
PostgreSQL users cannot create table configurations by themselves
【webrtc】m98 ninja 构建和编译指令
新型数据中心,助力加快构建以数据为关键要素的数字经济
[PaddleSeg 源码阅读] PaddleSeg计算Dice
02 ls 命令的具体实现
数据库SQL语句汇总,持续更新......
Detailed explanation of PPTC self recovery fuse
Cesiumjs 2022^ source code interpretation [0] - article directory and source code engineering structure