自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Top5软件工程硕士,先后在京东、字节从事多年Java后端开发、实时和离线大数据开发

博文均为博主精心总结,从企业实战出发,提高开发中解决问题的能力

  • 博客(1290)
  • 资源 (11)
  • 问答 (1)
  • 收藏
  • 关注

原创 JobShow裁员加班实况

如何写一份好的简历?写在前面在内推的时候很多同学问到如何能够让自己的简历更出彩,在帮助修改简历的过程中,发现了一些通用的问题,简单写个帖子总结下,如有错误请批评指正格式好的简历能够让HR一眼看到最重要的内容,而好的格式能够有效突出重点,且简洁凝练1. 不要混用中英文标点符号,不要增加奇怪的空格对于逗号、冒号、句号等标点符号,中英文是不一样的,混用会导致看上去很奇怪,有的同学会在中文逗号后加一个空格,就更奇怪了。2. 不要随意加粗只针对大标题以及内容中的关键...

2021-10-28 21:08:05 1548 2

原创 呕心沥血,悉心打磨-开发的产品

1.历时3个月,北大师兄开发的一款小程序【大头记账本】,生活花销,便捷清晰。永久免费提供服务。2.同时还有一款小程序【恋爱花销】,记录谈恋爱相关的花销3.更多企业内的技术应用和使用技巧,请移步至我的公众号【程序员实用技能】...

2021-08-30 18:54:59 548 1

原创 mysql 不走索引的情况

1 or (待确认)、in(待确认)2 like '%abc' 或者 like‘%abc%’3 where num/2=100 或者 subString(a,1,3)='ab'4 where id !=2 或者 where id <> 25 where name is null6 复合索引a-b-c,a用到,b用不到,c用不到,ab有效,ba有效,a or b无效,...

2019-04-18 21:31:40 7910

原创 js 对象数组添加属性、修改属性

var kvArray = [{key: 1, value: 10}, {key: 2, value: 20}, {key: 3, value: 30}];var reformattedArray = kvArray.map(function(obj,index) { console.log(index) var rO...

2018-10-12 19:24:14 31236 1

原创 线程池ExecutorService空闲线程的个数

keepAliveTime:表示线程没有任务执行时最多保持多久时间会终止。默认情况下,只有当线程池中的线程数大于corePoolSize时,keepAliveTime才会起作用,直到线程池中的线程数不大于corePoolSize,即当线程池中的线程数大于corePoolSize时,如果一个线程空闲的时间达到keepAliveTime,则会终止,直到线程池中的线程数不超过corePoolSize。但...

2018-06-28 20:02:33 21994 1

原创 Mysql decimal(m,d)的说明

看了一些博客,觉得很多都是复制的,不如自己亲测一篇: create table decimal_test(id int auto_increment PRIMARY key,score decimal(5,2) -- 取值范围是 -999.99 到 999.99);-- 整数的位数必须小于等于m-d,不然报错。小数的位数可以大于d位。多...

2018-02-02 14:27:20 33973 13

原创 java二维数组A.length和A[i].length的区别

public static void main(String[] args) { //// write your code here int[][] A=new int[][]{{1,2},{4,5},{7,8,10,11,12},{}}; System.out.println(A.length);//4,表示数组的行数 System.out.p

2017-08-11 21:04:30 29721 1

原创 @RefreshScope原理

修改了配置值,能自动刷新设置成最新值。

2023-07-25 11:43:24 438

原创 Hive date/timestamp/date_sub/date_add/date_format/日期时间格式转换

务必注意输入类型和返回类型!Hive函数-官方文档。

2022-07-16 17:52:57 3239 1

原创 Hive sum over partition preceding following 累计求和

有重复,不符合预期 按月份累计时partition by不能再出现month字段!符合预期符合预期 把month加上后,是精确到month粒度了,就看不出累加的效果了:partition by与group by的不同点:1 over(partition by)时select中可以出现多个字段(比如相关的维度字段或不相关的其他字段);但是如果是写[group by 维度字段]时,前面select中需要出现相同的维度字段才行(不然报错),比partition by多了一个限制!2 par

2022-07-14 16:15:53 2244

原创 FlinkSQL 列转行/解开map array/unnest/lateral table udtf

将Map展开为多列多行。基于UDTF结果示例2 将数组展开为单列多行。基于UNNEST基于UDTF结果示例3 将Array展开成多列多行end

2022-07-14 11:06:44 6791

原创 Fastjson 解析不固定key

end

2022-06-16 18:44:39 454

原创 Flink 窗口迟到很久的消息处理/side outputs 旁路输出/防止数据丢失

Flink 数据源分流/一个数据源分成多个/使用filter/使用split / select(已废弃)/side outputs 旁路输出_二十六画生的博客的博客-CSDN博客_flink 多个filterFlink(29):Flink中对迟到数据的处理(Allowed Lateness 和 SideOutput)_电光闪烁的博客-CSDN博客_flink迟到数据处理.sideOutputLateData(outputTag) Flink-处理乱序数据和迟到数据的总结和解决办法_Knight_AL的博客-

2022-06-14 21:30:59 893

原创 堆外内存 jvm

换句话说:堆外内存就是把内存对象分配在Java虚拟机的堆以外的内存,这些内存直接受操作系统管理(而不是虚拟机),这样做的结果就是能够在一定程度上减少垃圾回收对应用程序造成的影响。JVM堆外内存 - 晓风残月的博客Full GC时才会回收堆外内存。----Java 内存之直接内存(堆外内存) · 日常学习 · 看云----Major GC和Full GC的区别是什么?触发条件呢? - 知乎针对HotSpot VM的实现,它里面的GC其实准确分类只有两大种:Major GC通常是跟full GC是等价的,收集整

2022-06-13 16:00:18 561

原创 验车清单、验车事项、先验车后交款

验车清单、验车事项、先验车后交款

2022-06-13 10:52:57 583

原创 Clickhouse优点 缺点 / Doris 优点 缺点

ch优点:查询速度快,利用多核并行处理单个查询列式存储+压缩,节省空间内置数较多(例如IP转化,URL分析等,预估计算/HyperLoglog等);缺点:不支持事务不支持UPDATE/DELETE操作聚合结果必须小于一台机器的内存大小,否则失败Clickhouse 优点与缺点 (个人测评) - 知乎----Doris支持Array,ch支持Array/嵌套类型/枚举类型等。Doris支持事务和幂等性导入数据,ch不支持。Doris的join性能比较好,ch的单表

2022-05-26 15:53:26 5924

原创 Clickhouse IPv4StringToNum用法与原理/URL函数 protocol domain

selectIPv4StringToNum('1.1.1.1') -- 16843009IPv4的字符串转为十进制数字:IP函数 | ClickHouse Docs

2022-05-26 13:56:31 683

原创 Flink 新加source后 发布前需要修改checkpoint的namspace/报错:作业拓扑发生改变,无法使用现有Checkpoint

之前是:source_a union all source_b ;新加source_c:source_a union all source_b source_c;会报错:Flink任务Checkpoint检查报错:作业拓扑发生改变,无法使用现有CheckpointCheckpoint verification error: org.apache.flink.client.program.ProgramInvocationException: The main method ca

2022-05-21 13:48:36 333

原创 Clickhouse groupArray/groupUniqArray/arrayJoin/splitByChar

行列转置一般由由行转为列,或者由列转为行。CREATE TABLE datasets.t_city( `province` String, `city` String, `createtime` DateTime, `city_level` Int8)ENGINE = MergeTree()ORDER BY provinceSETTINGS index_granularity = 8192; insert into t_city values.

2022-05-15 15:06:56 2242

原创 Leetcode_40_CombinationSumII--数组元素组合,和为目标值,一个元素只可用一次,输出每种组合,每种组合唯一

Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations incandidateswhere the candidate numbers sum totarget.Each number incandidatesmay only be usedoncein the combination.Note:The solutio...

2022-05-02 10:41:44 285

原创 Leetcode 35. Search Insert Position--在有序数组中,查找目标值的插入位置。如果tar存在,则返回tar的下标;如果tar不存在,则返回插入tar的正确的下标

Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You mustwrite an algorithm withO(log n)runtime complexity.Example 1:I...

2022-05-01 17:05:10 206

原创 Flink AggregateFunction窗口函数,merge何时执行(三)

前言在我们使用Flink DataStream API编写业务代码时,aggregate()算子和AggregateFunction无疑是非常常用的。编写一个AggregateFunction需要实现4个方法:public interface AggregateFunction<IN, ACC, OUT> extends Function, Serializable { ACC createAccumulator(); ACC add(IN value, ACC ac...

2022-04-15 14:20:03 2744

原创 Flink AggregateFunction窗口函数,执行步骤、流程与实例(二)

先keyby分组,使用计数窗口计算,实例:

2022-04-15 14:14:12 902

原创 Flink AggregateFunction窗口函数,自定义UDAF,UDF(一)

AggregateFunction 比 ReduceFunction 更加的通用,它有三个参数:输入类型(IN)、累加器类型(ACC)和输出类型(OUT)。

2022-04-15 14:10:45 505

原创 Java,重写Comparable比较方法,重写equals方法, Long 与 Long equals,Long 与 Long == ,Long 与 long ==

jdk1.8,1 重写Comparable比较方法2 重写equals方法3 Long 与 Long equals,Long 与 Long == ,Long 与 long ==

2022-04-13 17:25:54 1216

原创 Leetcode 22. Generate Parentheses - 生成指定数量的有效圆括号,比如输入2,输出()()、(())

Leetcode 22. Generate Parentheses - 生成指定数量的有效圆括号,比如输入2,输出()()、(())

2022-04-11 22:46:50 563

原创 Java list1=list2;list2=null ? list1=list2;list2.clear()?

Java list1=list2;list2=null ? list1=list2;list2.clear()?

2022-04-10 13:27:57 879

原创 Leetcode 412. Fizz Buzz-蜂鸣器

Leetcode 412. Fizz Buzz-蜂鸣器;Given an integern, returna string arrayanswer(1-indexed) where:answer[i] == "FizzBuzz"ifiis divisible by3and5.answer[i] == "Fizz"ifiis divisible by3.answer[i] == "Buzz"ifiis divisible by5.answer[i] == i(a

2022-04-09 12:13:52 480

原创 Java char int 转换/char[]char数组 字符串 转换 String.valueOf/Arrays.sort/int[]数组初始0/Integer[]数组初始null

public static void main(String[] args) { int[] crr = new int[200]; char a = 'a'; System.out.println(crr[a]);//0 System.out.println(crr[a]--);//0 System.out.println(crr[a] + 2);//1 /////////////////////...

2022-04-08 23:13:10 351

原创 Leetcode 242. Valid Anagram-判断是否是 相同字母异序词

Leetcode 242. Valid Anagram

2022-04-08 23:06:24 430

原创 Leetcode 171. Excel Sheet Column Number-Excel的列名转换为具体的数字AB->28,ZY->701

Leetcode 171. Excel Sheet Column Number-Excel的列名转换为具体的数字AB->28,ZY->701

2022-04-08 11:28:35 257

原创 Leetcode 328. Odd Even Linked List-奇数位节点放前面,偶数位节点放后面,按照原来的顺序

Given theheadof a singly linked list, group all the nodes with odd indices together followed by the nodes with even indices, and returnthe reordered list.Thefirstnode is consideredodd, and thesecondnode iseven, and so on.Note that the relative...

2022-04-05 19:11:38 300

原创 Leetcode 116. Populating Next Right Pointers in Each Node--完全二叉树层次遍历后放入队列链表--Queue,LinkedList

You are given aperfect binary treewhere all leaves are on the same level, and every parent has two children. The binary tree has the following definition:struct Node { int val; Node *left; Node *right; Node *next;}Populate each next pointe..

2022-04-05 16:12:16 538

原创 Leetcode 237. Delete Node in a Linked List-删除链表的指定节点,不给链表的头节点

Write a function todelete a nodein a singly-linked list. You willnotbe given access to theheadof the list, instead you will be given access tothe node to be deleteddirectly.It isguaranteedthat the node to be deleted isnot a tail nodein the li...

2022-04-05 10:55:55 796

原创 Leetcode 234. Palindrome Linked List--判断是否是回文链表,返回中间节点,反转链表

Given theheadof a singly linked list, returntrueif it is a palindrome.Example 1:Input: head = [1,2,2,1]Output: trueExample 2:Input: head = [1,2]Output: falseConstraints:The number of nodes in the list is in the range[1, 105]....

2022-04-04 23:52:01 272

原创 Leetcode 82. Remove Duplicates from Sorted List II--删除链表中的重复节点,重复的节点均删除掉

Given theheadof a sorted linked list,delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list. Returnthe linked listsortedas well.Example 1:Input: head = [1,2,3,3,4,4,5]Output: [1,2,5]Example 2:...

2022-04-03 23:05:05 469

原创 Leetcode 83. Remove Duplicates from Sorted List-从有序链表中删除重复节点,重复的节点只保留一个

* 每次:head与head.next值相等时,pre.next = head.next * head与head.next值不相等时,pre=最后一个重复值,head=下一个值

2022-04-03 22:46:44 486

原创 flinksql的 / 的结果只会保留整数部分,flinksql 不支持 div运算符。hive、 mysql : / 结果是小数, div 结果只会保留整数部分

flinksql的 / 的结果只会保留整数部分,flinksql 不支持 div运算符。hive、 mysql : / 结果是小数, div 结果只会保留整数部分mysql> select 3/2 ;+--------+| 3/2 |+--------+| 1.5000 |+--------+1 row in set (0.00 sec)mysql> mysql> mysql> select 3 div 2 ;+---------+| 3 ..

2022-03-29 10:16:53 3208

原创 SQL 10位时间戳 除以60 得到整分钟;group by event_ts/60<==> group by 1min

1648519200 2022-03-29 10:00:00/60 = 274753201648519260 2022-03-29 10:01:00/60= 274753211648519300 2022-03-29 10:01:40/60= 27475321.6666666666666671648519320 2022-03-29 10:02:00/60= 274753221648519360 2022-03-29 10:02:40/60= 27475322.6666666666

2022-03-29 10:10:12 727

原创 分位数 算法

1p分位数的原理及计算_juliarjuliar的博客-CSDN博客_分位数2性能指标里的80分位是什么? - 掘金本以为很简单,没想到那么复杂.....

2022-03-08 16:56:45 2666

split_csv.sh

v6.csv有200多万行,excel的一个sheet最多显示104万行左右,显示不全,那么如何切分呢? 亲测可用

2020-03-21

htmlunit-2.31.jar

htmlunit-2.31,亲测可用!能很好的完成抓取需求,能够模拟输入、点击按钮、解析结果

2018-06-10

mhd raw metaimage java读取类

亲测可用,mhd raw metaimage java读取类。mhd raw metaimage java读取类。mhd raw metaimage java读取类。

2017-10-18

quartz定时任务

不用集成Spring,代码简洁,亲测可用

2017-05-20

Struts2登录实例--亲测可用

Struts2登录实例--亲测可用,拦截器,Action,值栈......都用到了

2017-05-17

joda-time-2.3.jar

DateTime类型,方便使用

2016-11-17

commons-lang-2.5.jar

解决..java.lang.NoClassDefFoundError: org/apache/commons/lang/StringUtils问题

2016-07-08

commons-configuration-1.6.jar

解决..java.lang.NoClassDefFoundError: org/apache/commons/configuration/Configuration, 亲测可用

2016-07-08

android通过servlet与服务器验证用户信息

成功返回success,失败返回failed 1注意manifext.xml的权限 2 servlet project的类一定要extends httpservlet 3 servlet project中,com是包名,所以Tomcat是...classes/com/xxx.class 4 192.168.0.107是电脑的IP,需要手机电脑连接的是同一个wifi,电脑的防火墙一定要关闭

2016-03-26

全国省市县区域名称

省市县区域名称,例如: ................. 240: 云南省:昆明市 240864: 云南省 昆明市 东川区 240865: 云南省 昆明市 五华区 240866: 云南省 昆明市 呈贡县 240867: 云南省 昆明市 安宁市 ............

2015-11-17

拼图游戏C语言

拼图游戏开发,使用语言为C语言类,游戏开发,

2013-05-24

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除