码迷,mamicode.com
首页 >  
搜索关键字:stream    ( 10730个结果
java SPI 03-ServiceLoader jdk 源码解析
系列目录 spi 01-spi 是什么?入门使用 spi 02-spi 的实战解决 slf4j 包冲突问题 spi 03-spi jdk 实现源码解析 spi 04-spi dubbo 实现源码解析 spi 05-dubbo adaptive extension 自适应拓展 spi 06-自己从零手 ...
分类:编程语言   时间:2020-06-19 01:16:46    阅读次数:66
A 1141 PAT Ranking of Institutions (25分)
一、技术总结 二、参考代码 #include<iostream> #include<vector> #include<algorithm> #include<set> #include<map> using namespace std; struct node_i{ string name; dou ...
分类:其他好文   时间:2020-06-19 00:49:08    阅读次数:43
一本通1116:最长平台
题目传送门 ####【题目描述】 已知一个已经从小到大排序的数组,这个数组的一个平台(Plateau)就是连续的一串值相同的元素,并且这一串元素不能再延伸。例如,在 1,2,2,3,3,3,4,5,5,6中1,2?2,3?3?3,4,5?5,6都是平台。试编写一个程序,接收一个数组,把这个数组最长的 ...
分类:其他好文   时间:2020-06-18 22:02:26    阅读次数:106
linux环境下nginx + tomcat 负载均衡
修改nginx 的配置文件/etc/nginx/nginx.conf http { log_format main '$remote_addr - $remote_user [$time_local] "$request" ' '$status $body_bytes_sent "$http_ref ...
分类:系统相关   时间:2020-06-18 21:31:42    阅读次数:81
如何按子组收集数据?
例如,要数一数菜单中每类菜有多少个,可以传递counting收集器作为groupingBy收集器的第二个参数:Map<Dish.Type, Long> typesCount = menu.stream().collect( groupingBy(Dish::getType, counting())) ...
分类:其他好文   时间:2020-06-18 21:22:09    阅读次数:67
Flink WaterMark原理与实现
一、WaterMark作用 在使用 EventTime 处理 Stream 数据的时候会遇到数据乱序的问题,流处理从 Event(事 件)产生,流经 Source,再到 Operator,这中间需要一定的时间。虽然大部分情况下,传输到 Operator 的数据都是按照事件产生的时间顺序来的,但是也不 ...
分类:其他好文   时间:2020-06-18 19:56:39    阅读次数:187
《算法竞赛进阶指南》0x21有向无环图中点的可达性统计 topsort+bitset
题目链接:https://www.acwing.com/problem/content/description/166/ 计算有向无环图中每个点可达的点的数量,可以先通过拓扑排序确定点的拓扑序,因为在一个点处理之前,他所能到达的所有点都要先被处理,所以我们处理的顺序 只要是按照拓扑排序的逆序处理就能 ...
分类:编程语言   时间:2020-06-18 19:19:19    阅读次数:63
进制转换
题目链接 #include<iostream> #include<string> #include<algorithm> using namespace std; int Atoi( string str , int N ){ //N进制转10进制,输入string 输出int int ans = ...
分类:其他好文   时间:2020-06-18 19:06:27    阅读次数:126
字节流写出中文。
FileOutputStream fos = new FileOutputStream ("zzz.txt"); fos.write("我读书少,你不要骗我".getBytes()); //将字符串转换为字节数组,然后写出 fos.write("\r\n"getBytes()); //换到下一行 f ...
分类:其他好文   时间:2020-06-17 23:43:58    阅读次数:60
Spring Cloud
Spring Cloud 是开发分布式系统的“全家桶”,是一系列框架的有序集合。通俗地讲,Spring Cloud 就是用于构建微服务开发和治理的框架集合 Spring Cloud 模块介绍 Spring Cloud 模块的相关介绍如下: Eureka:服务注册中心,用于服务管理。 Ribbon:基 ...
分类:编程语言   时间:2020-06-17 18:16:51    阅读次数:70
10730条   上一页 1 ... 47 48 49 50 51 ... 1073 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!