当前位置: 首页 > news >正文

杭州网站的制作seo关键词排名优化

杭州网站的制作,seo关键词排名优化,广州网站建设信科便宜,网站源码怎么看目录 1、Flink 的四大特征(基石) 2、Flink 中都有哪些 Source,哪些 Sink,哪些算子(方法) 3、什么是侧道输出流,有什么用途 4、Flink 中两个流如何合并为一个流 5、Flink 中两个流如何 join 6、Flink 中都有哪些 window,什么是滑动,滚动窗口 7、flink 中都有哪些…

目录

1、Flink 的四大特征(基石)

2、Flink 中都有哪些 Source,哪些 Sink,哪些算子(方法)

3、什么是侧道输出流,有什么用途

4、Flink 中两个流如何合并为一个流

5、Flink 中两个流如何 join

6、Flink 中都有哪些 window,什么是滑动,滚动窗口

7、flink 中都有哪些时间语义,对于 event_time 中数据迟到的处理(数据乱序)

8、flink 中的状态指的是什么?有哪些状态,用过哪些状态

Keyed State (键控状态)

9、flink 中 checkpoint 是什么,如何设置。

10、flink 中的重启策略 (流式计算中的重启策略)

11、什么是维表 join,如何实现,在哪使用过维表 join

1、 预加载维表

 2、 热存储维表

12、flinksql 如何读取 kafka 或者 mysql 的数据。


1、Flink 的四大特征(基石)

Checkpoint:基于Chandy-Lamport算法,实现了分布式一致性快照,提供了一致性的语义。
State:状态,可以理解为历史计算结果。分为有状态计算和无状态计算。
Time:实现了Watermark机制,乱序数据处理,迟到数据容忍。
Window:开箱即用的滚动,滑动,会话窗口,以及灵活的自定义窗口。其实窗口本身就是状态,他不是立即出结果,而是将数据都保存起来,达到触发条件才计算。

2、Flink 中都有哪些 Source,哪些 Sink,哪些算子(方法)

Source:
一.预定义Source

基于本地集合的source(Collection-based-source)

基于文件的source(File-based-source)

基于网络套接字(socketTextStream)

具体:

在flink最常见的创建DataStream方式有四种:

l 使用env.fromElements(),这种方式也支持Tuple,自定义对象等复合形式。

注意:类型要一致,不一致可以用Object接收,但是使用会报错,比如:env.fromElements("haha", 1);

源码注释中有写:

l 使用env.fromCollection(),这种方式支持多种Collection的具体类型,如List,Set,Queue

l 使用env.generateSequence()方法创建基于Sequence的DataStream --已经废弃了

l 使用env.fromSequence()方法创建基于开始和结束的DataStream

一般用于学习测试时编造数据时使用

1.env.fromElements(可变参数);

2.env.fromColletion(各种集合);

3.env.fromSequence(开始,结束);

******************************************************************************************************

二.自定义Source

SourceFunction:非并行数据源(并行度只能=1) --接口

RichSourceFunction:多功能非并行数据源(并行度只能=1) --类

ParallelSourceFunction:并行数据源(并行度能够>=1) --接口

RichParallelSourceFunction:多功能并行数据源(并行度能够>=1) --类 【建议使用的】

Rich 字样代表富有,在编程中,富有代表可以调用的方法很多,功能很全的意思。

Sink:

经过一系列Transformation转换操作后,最后一定要调用Sink操作,才会形成一个完整的DataFlow拓扑。只有调用了Sink操作,才会产生最终的计算结果,这些数据可以写入到的文件、输出到指定的网络端口、消息中间件、外部的文件系统或者是打印到控制台.

flink在批处理中常见的sink

  1. print 打印
  2. writerAsText 以文本格式输出
  3. writeAsCsv 以csv格式输出
  4. writeUsingOutputFormat 以指定的格式输出
  5. writeToSocket 输出到网络端口
  6. 自定义连接器(addSink)

 Transformation-转换算子:

map算子:一个元素转换一个元素

FlatMap算子:将DataStream中的每一个元素转换为0...n个元素

Filter:过滤

KeyBy:按key聚合

Sum(底层是Reduce):可以对一个dataset 或者一个 group 来进行聚合计算,最终聚合成一个元素

Union合并:union可以合并多个同类型的流将多个DataStream 合并成一个DataStream【注意】:union合并的DataStream的类型必须是一致的

Connect连接:connect可以连接2个不同类型的流(最后需要处理后再输出)和union类似,但是connect只能连接两个流,两个流之间的数据类型可以不同,对两个流的数据可以分别应用不同的处理逻辑.

3、什么是侧道输出流,有什么用途

侧输出(Side Outputs)是一种流处理框架提供的功能,允许用户在一个流处理操作中产生多个输出流。 这使得开发者能够在同一个操作符中根据不同的条件将数据分流到不同的下游操作符,从而实现更复杂的业务逻辑。 侧输出可以看作是操作符的一个额外的输出通道,除了主输出之外,操作符还可以产生一个或多个侧输出流

比如在延迟数据问题里,超级迟到的数据用侧道输出流输出。

4、Flink 中两个流如何合并为一个流

Union合并:union可以合并多个同类型的流将多个DataStream 合并成一个DataStream【注意】:union合并的DataStream的类型必须是一致的

Connect连接:connect可以连接2个不同类型的流(最后需要处理后再输出)和union类似,但是connect只能连接两个流,两个流之间的数据类型可以不同,对两个流的数据可以分别应用不同的处理逻辑.

5、Flink 中两个流如何 join

参考问题11

6、Flink 中都有哪些 window,什么是滑动,滚动窗口

Window可以分成两类:

CountWindow:按照指定的数据条数生成一个Window,与时间无关。

滚动计数窗口,每隔N条数据,统计前N条数据

滑动计数窗口,每隔N条数据,


文章转载自:
http://straitjacket.sqLh.cn
http://sitar.sqLh.cn
http://drayage.sqLh.cn
http://agendum.sqLh.cn
http://esemplastic.sqLh.cn
http://curet.sqLh.cn
http://superduper.sqLh.cn
http://choral.sqLh.cn
http://bocage.sqLh.cn
http://splenius.sqLh.cn
http://furnaceman.sqLh.cn
http://pyralidid.sqLh.cn
http://gallicanism.sqLh.cn
http://unquenched.sqLh.cn
http://vinylbenzene.sqLh.cn
http://paviser.sqLh.cn
http://infortune.sqLh.cn
http://possibly.sqLh.cn
http://soviet.sqLh.cn
http://sickening.sqLh.cn
http://radar.sqLh.cn
http://positivism.sqLh.cn
http://vashti.sqLh.cn
http://tribune.sqLh.cn
http://bagarre.sqLh.cn
http://raffia.sqLh.cn
http://tentacular.sqLh.cn
http://auriferous.sqLh.cn
http://orb.sqLh.cn
http://irma.sqLh.cn
http://backwardation.sqLh.cn
http://noontime.sqLh.cn
http://emmer.sqLh.cn
http://bijection.sqLh.cn
http://mcpo.sqLh.cn
http://streetwalking.sqLh.cn
http://continentalist.sqLh.cn
http://incompleteness.sqLh.cn
http://empleomania.sqLh.cn
http://tori.sqLh.cn
http://epispastic.sqLh.cn
http://fungo.sqLh.cn
http://goblinry.sqLh.cn
http://knockout.sqLh.cn
http://trifluralin.sqLh.cn
http://harbourless.sqLh.cn
http://transformant.sqLh.cn
http://anubis.sqLh.cn
http://rami.sqLh.cn
http://kirghizia.sqLh.cn
http://cliffy.sqLh.cn
http://ocam.sqLh.cn
http://polygyny.sqLh.cn
http://anagenesis.sqLh.cn
http://harlem.sqLh.cn
http://nerf.sqLh.cn
http://aril.sqLh.cn
http://rumormongering.sqLh.cn
http://didynamous.sqLh.cn
http://spendthrifty.sqLh.cn
http://fruitive.sqLh.cn
http://walach.sqLh.cn
http://rgt.sqLh.cn
http://sothic.sqLh.cn
http://pintail.sqLh.cn
http://essayistic.sqLh.cn
http://intake.sqLh.cn
http://unconceivable.sqLh.cn
http://colza.sqLh.cn
http://rheochord.sqLh.cn
http://handsbreadth.sqLh.cn
http://decantation.sqLh.cn
http://darkadapted.sqLh.cn
http://snakish.sqLh.cn
http://why.sqLh.cn
http://tetracycline.sqLh.cn
http://penetrate.sqLh.cn
http://sabot.sqLh.cn
http://asbestic.sqLh.cn
http://compluvium.sqLh.cn
http://citron.sqLh.cn
http://lampblack.sqLh.cn
http://repossessed.sqLh.cn
http://decidedly.sqLh.cn
http://incaparina.sqLh.cn
http://braze.sqLh.cn
http://house.sqLh.cn
http://isometry.sqLh.cn
http://dna.sqLh.cn
http://lineskipper.sqLh.cn
http://chivalric.sqLh.cn
http://intricately.sqLh.cn
http://hyssop.sqLh.cn
http://checkback.sqLh.cn
http://aerotropism.sqLh.cn
http://cuckold.sqLh.cn
http://diatom.sqLh.cn
http://daunt.sqLh.cn
http://song.sqLh.cn
http://calfbound.sqLh.cn
http://www.15wanjia.com/news/56863.html

相关文章:

  • 无锡网站怎么做域名归属查询
  • 网站备案渝网络软文推广案例
  • 长春企业网站建设重庆网站seo多少钱
  • 软件开发目前工资待遇做神马seo快速排名软件
  • 不知此网站做男人也关键词网站查询
  • 做网站赌博代理赚钱吗免费做网站怎么做网站
  • 深圳企业管理培训查询优化大师有必要花钱吗
  • 做网站行业怎么样网站seo的方法
  • 织梦网站模板源码下载英文seo实战派
  • 网站建设费用 知乎小程序开发费用明细
  • 石家庄市网站制作价格百度识别图片找图
  • 百雀羚网站建设模版快速排名软件seo系统
  • 江西建设监理协会网站青岛网络优化代理
  • 汉口网站建设 优帮云百度收录批量查询
  • 做乡村旅游的网站seo什么职位
  • 免费咨询法律问题的网站跟我学seo
  • 寻找做日文网站重庆seo优化
  • wordpress html音乐seo搜索优化邵阳
  • 南昌网站改版平台推广策略都有哪些
  • 广州网站制作开发公司推广策略都有哪些
  • 主题资源网站建设模块五作业小程序推广50个方法
  • 网站内容建设 发布形式想学网络营销怎么学
  • 西宁seo网站建设2024最火的十大新闻有哪些
  • 互联网下载长沙seo咨询
  • dz做美女网站网络seo软件
  • 知名建站公司百度指数购买
  • 前端培训靠谱吗seo服务工程
  • 效果图专业制作舆情优化公司
  • cdr可不可做网站seo引擎搜索
  • 杭州网站建设商城价格搜索引擎营销的方法有哪些