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

行业网站推广网站收录怎么设置

行业网站推广,网站收录怎么设置,网络营销的工具和方法,wordpress 链接管理文章目录 背景主要步骤代码 背景 通常使用flink 提供的高级算子来编写flink 任务#xff0c;对底层不是很了解#xff0c;尤其是如何生成作业图的细节 下面通过构造一个有向无环图#xff0c;来实际看一下 主要步骤 1.增加source 2.增加operator 3. 增加一条边#xff0… 文章目录 背景主要步骤代码 背景 通常使用flink 提供的高级算子来编写flink 任务对底层不是很了解尤其是如何生成作业图的细节 下面通过构造一个有向无环图来实际看一下 主要步骤 1.增加source 2.增加operator 3. 增加一条边连接source和operator 4. 增加sink 5. 增加一条边连接operator和sink 代码 // Step 1: Create basic configurationsConfiguration configuration new Configuration();ExecutionConfig executionConfig new ExecutionConfig();CheckpointConfig checkpointConfig new CheckpointConfig();SavepointRestoreSettings savepointRestoreSettings SavepointRestoreSettings.none();// Step 2: Create a new StreamGraph instanceStreamGraph streamGraph new StreamGraph(configuration, executionConfig, checkpointConfig, savepointRestoreSettings);// Step 3: Add a source operatorGeneratorFunctionLong, String generatorFunction index - Number: index;DataGeneratorSourceString source new DataGeneratorSource(generatorFunction, Long.MAX_VALUE, RateLimiterStrategy.perSecond(1), Types.STRING);SourceOperatorFactoryString sourceOperatorFactory new SourceOperatorFactory(source, WatermarkStrategy.noWatermarks());streamGraph.addSource(1, sourceNode, sourceDescription, sourceOperatorFactory, TypeInformation.of(String.class), TypeInformation.of(String.class), sourceSlot);// Step 4: Add a map operator to transform the dataStreamMapString, String mapOperator new StreamMap(new MapFunctionString, String() {Overridepublic String map(String value) throws Exception {return value;}});SimpleOperatorFactoryString mapOperatorFactory SimpleOperatorFactory.of(mapOperator);streamGraph.addOperator(2, mapNode, mapDescription, mapOperatorFactory, TypeInformation.of(String.class), TypeInformation.of(String.class), mapSlot);// Step 5: Connect source and map operatorstreamGraph.addEdge(1, 2, 0);// Step 6: Add a sink operator to consume the dataStreamMapString, String sinkOperator new StreamMap(new MapFunctionString, String() {Overridepublic String map(String value) throws Exception {System.out.println(value);return value;}});SimpleOperatorFactoryString sinkOperatorFactory SimpleOperatorFactory.of(sinkOperator);streamGraph.addSink(3, sinkNode, sinkDescription, sinkOperatorFactory, TypeInformation.of(String.class), TypeInformation.of(String.class), sinkSlot);// Step 7: Connect map and sink operatorstreamGraph.addEdge(2, 3, 0);streamGraph.setTimeCharacteristic(TimeCharacteristic.ProcessingTime);streamGraph.setMaxParallelism(1,1);streamGraph.setMaxParallelism(2,1);streamGraph.setMaxParallelism(3,1);streamGraph.setGlobalStreamExchangeMode(GlobalStreamExchangeMode.ALL_EDGES_PIPELINED);// Step 8: Convert StreamGraph to JobGraphJobGraph jobGraph streamGraph.getJobGraph();// Step 9: Set up a MiniCluster for local executionMiniClusterConfiguration miniClusterConfig new MiniClusterConfiguration.Builder().setNumTaskManagers(10).setNumSlotsPerTaskManager(10).build();MiniCluster miniCluster new MiniCluster(miniClusterConfig);// Step 10: Start the MiniClusterminiCluster.start();// Step 11: Submit the job to the MiniClusterJobExecutionResult result miniCluster.executeJobBlocking(jobGraph);System.out.println(Job completed with result: result);// Step 12: Stop the MiniClusterminiCluster.close();
http://www.hkea.cn/news/14568699/

相关文章:

  • 随县住房和城乡建设局网站数字广东网络建设有限公司总经理
  • 商城网站的建设网络营销推广的应用场景
  • diy手机壳定制网站嵌入式软件开发工程师是做什么的
  • 网站建站加盟网站做优化有什么用吗
  • 网络推广培训班合肥网络公司seo建站
  • 攸县网站开发上海电信网站备案
  • 太原网站建设 网站制作网站备案换主体
  • 网站域名怎么设置方法厂西建设厅网站
  • 建设网站计划ppt模板怎样直接输入网址打开网站
  • dz网站建设器商城网站中商品模块有哪些功能
  • win2008 网站服务器企业信息系统类型
  • 代备案网站空间wordpress ajax 注册
  • 建设网站公司东莞汕头建设学校的网站
  • 哪个网站建设公司比较好运营一个app大概多少钱
  • 自建网站卖东西一键下载安装微信
  • 网站建设到上线步骤对运营网站有什么见解
  • 网站后台域名大学《网站开发与应用》试题
  • 卯兔科技西安网站建设南京电器网站建设
  • 国外域名注册网站html网站 怎么做seo
  • 网站模块如何添加上海纯设计公司排名
  • 网站建设飠金手指科杰十二wordpress弹幕
  • 网站文件上传完成后打开网站显示网站建设中怎么回事?怎么卸载windows优化大师
  • 郑州做网站哪家公司最好seo网站设计哪里好
  • 做智能网站系统下载网站被k申述
  • 平顶山网站制作哪家公司好专门做电容的网站
  • 微信做购物网站怎么抽佣专业做家电的网站
  • 网站开发实验总结wordpress怎么备份数据库
  • 东莞建设网站官网登录平台公司属于什么行业
  • 装修公司谁做网站万网网站首页
  • linux网站管理面板wordpress登录回复