为了统一批处理和流处理:

Apache Flink features two relational APIs - the Table API and SQL - for unified stream and batch processing. The Table API is a language-integrated query API for Scala and Java that allows the composition of queries from relational operators such as selection, filter, and join in a very intuitive way. Flink’s SQL support is based on Apache Calcite which implements the SQL standard. Queries specified in either interface have the same semantics and specify the same result regardless whether the input is a batch input (DataSet) or a stream input (DataStream).

The Table API and the SQL interfaces are tightly integrated with each other as well as Flink’s DataStream and DataSet APIs. You can easily switch between all APIs and libraries which build upon the APIs. For instance, you can extract patterns from a DataStream using the CEP library and later use the Table API to analyze the patterns, or you might scan, filter, and aggregate a batch table using a SQL query before running a Gelly graph algorithm on the preprocessed data.

Setup

The Table API and SQL are bundled in the flink-table Maven artifact. The following dependency must be added to your project in order to use the Table API and SQL:

<dependency><groupId>org.apache.flink</groupId><artifactId>flink-table_2.11</artifactId><version>1.7.2</version>
</dependency>

In addition, you need to add a dependency for either Flink’s Scala batch or streaming API. For a batch query you need to add:

<dependency><groupId>org.apache.flink</groupId><artifactId>flink-scala_2.11</artifactId><version>1.7.2</version>
</dependency>

For a streaming query you need to add:

<dependency><groupId>org.apache.flink</groupId><artifactId>flink-streaming-scala_2.11</artifactId><version>1.7.2</version>
</dependency>

6-3Table API SQL简介相关推荐

  1. sql简介_SQL简介

    sql简介 Today, data is the basis of any business. The world of enterprise computing is the epitome of ...

  2. 2021年大数据Flink(三十):Flink ​​​​​​​Table API  SQL 介绍

    目录 ​​​​​​​Table API & SQL 介绍 为什么需要Table API & SQL ​​​​​​​Table API& SQL发展历程 架构升级 查询处理器的选 ...

  3. 学习笔记Spark(六)—— Spark SQL应用(1)—— Spark SQL简介、环境配置

    一.Spark SQL简介 1.1.Spark SQL特性 Spark SQL是Spark Core之上的一个组件,它引入了一个称为SchemaRDD的新- 数据抽象,它为结构化和半结构化数据提供支持 ...

  4. DL框架之TensorFlow:深度学习框架TensorFlow Core(低级别TensorFlow API)的简介、安装、使用方法之详细攻略

    DL框架之TensorFlow:TensorFlow Core(低级别TensorFlow API)的简介.安装.使用方法之详细DL框架之TensorFlow:深度学习框架TensorFlow Cor ...

  5. ML之API:国内外各大人工智能平台(百度云/华为云/阿里云/Face++等)及其API的简介、使用方法之详细攻略

    ML之API:国内外各大人工智能平台(百度云/华为云/阿里云/Face++等)及其API的简介.使用方法之详细攻略 目录 一.百度云api 1.api之CV 二.旷视科技(face++)api 1.a ...

  6. OpenCASCADE:拓扑 API之简介

    OpenCASCADE:拓扑 API之简介 Open CASCADE Technology ( OCCT )的拓扑 API包括以下六个包: BRepAlgoAPI BRepBuilderAPI BRe ...

  7. 1.18.Table API SQL(概念、依赖图、Table程序依赖、扩展依赖)

    1.18.Table API & SQL 1.18.1.概念 1.18.1.1.依赖图 1.18.1.2.Table程序依赖 1.18.1.3.扩展依赖 1.18.Table API & ...

  8. Hibernate事实:始终检查Criteria API SQL查询

    Criteria API对于动态构建查询非常有用,但这是我使用它的唯一用例. 每当您有一个带有N个过滤器且可以以任意M个组合到达的UI时,就应该有一个API动态地构造查询,因为连接字符串始终是我所不愿 ...

  9. 休眠事实:始终检查Criteria API SQL查询

    Criteria API对于动态构建查询非常有用,但这是我使用它的唯一用例. 每当您有一个带有N个过滤器且可以以任意M个组合到达的UI时,都有一个API动态构造查询是有意义的,因为串联字符串始终是我所 ...

最新文章

  1. SQLServer之DEFAULT约束
  2. 启动服务错误5拒绝访问_【Go API 开发实战 5】基础1:启动一个最简单的 RESTful API 服务器...
  3. SAP UI5 router的初始化逻辑
  4. vue 实现数据滚动显示_vue 滚动加载数据
  5. We Chall-Encodings: URL -Writeup
  6. error LNK2005: 已经在 app_launcher.obj 中定义
  7. jtopo node.text换行_JTopo 使用
  8. Reached heap limit Allocation failed - JavaScript heap out of memory
  9. 经常被问到的有深度有内涵的数据结构面试题
  10. 孙溟㠭创作篆刻作品(稻)纪念袁隆平老先生
  11. java文件后缀_关于java文件扩展名认识
  12. Android 高清加载长图或大图方案
  13. c语言编译器 控制unix 故事,互联网发展史人物篇:布莱恩·克尼汉(Brian Kernighan)——Unix和C语言背后的巨人...
  14. html中iframe全屏显示,如何让iframe中的元素全屏
  15. 一起做RGB-D SLAM(4)
  16. 一文搞懂四种 WebSocket 使用方式
  17. Keil5 MDK社区版本免费安装教程---手把手安装
  18. python爬人人贷代码视频_Python爬虫 - 人人贷散标
  19. python : 蒙特卡罗算法 应用于双色球
  20. 互联网思维是个什么玩意

热门文章

  1. jeecg 如何重新加载当前渲染tab页面
  2. 服务器部署多个tomcat方法
  3. gdb学习(二)[第二版]
  4. LoadRunner12安装说明以及问题解决
  5. Kubernetes管理员的11条 安全军规
  6. 作业四 | 个人项目-小学四则运算 “软件”之初版
  7. VirtualBox 无权限问题
  8. MYSQL数据库安装记
  9. 线上lnmp环境快速安装
  10. 第六部分 PHP实例