- 博客(1295)
- 资源 (11)
- 问答 (1)
- 收藏
- 关注
原创 JobShow裁员加班实况
如何写一份好的简历?写在前面在内推的时候很多同学问到如何能够让自己的简历更出彩,在帮助修改简历的过程中,发现了一些通用的问题,简单写个帖子总结下,如有错误请批评指正格式好的简历能够让HR一眼看到最重要的内容,而好的格式能够有效突出重点,且简洁凝练1. 不要混用中英文标点符号,不要增加奇怪的空格对于逗号、冒号、句号等标点符号,中英文是不一样的,混用会导致看上去很奇怪,有的同学会在中文逗号后加一个空格,就更奇怪了。2. 不要随意加粗只针对大标题以及内容中的关键...
2021-10-28 21:08:05
1876
2
原创 呕心沥血,悉心打磨-开发的产品
1.历时3个月,北大师兄开发的一款小程序【大头记账本】,生活花销,便捷清晰。永久免费提供服务。2.同时还有一款小程序【恋爱花销】,记录谈恋爱相关的花销3.更多企业内的技术应用和使用技巧,请移步至我的公众号【程序员实用技能】...
2021-08-30 18:54:59
688
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
8263
原创 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
31866
原创 线程池ExecutorService空闲线程的个数
keepAliveTime:表示线程没有任务执行时最多保持多久时间会终止。默认情况下,只有当线程池中的线程数大于corePoolSize时,keepAliveTime才会起作用,直到线程池中的线程数不大于corePoolSize,即当线程池中的线程数大于corePoolSize时,如果一个线程空闲的时间达到keepAliveTime,则会终止,直到线程池中的线程数不超过corePoolSize。但...
2018-06-28 20:02:33
22562
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
34766
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
30947
原创 每个subtask都提交一份快照到hdfs,会把10个小的快照合并成一个大的吗?谁来合并?
RocksDB 增量快照,第一次全量是每个 subtask 独立一份;后续所有增量快照,也依然是每个 subtask 独立一份、独立上传、独立存储;所有 subtask 之间完全隔离,不合并、不共享、不交叉。
2026-04-30 17:06:09
318
原创 BroadcastStates是在每个taskmanager都有一份相同的数据吗?
结论先给你;同一个 TaskManager 上如果跑多个 Subtask,,不是共享同一份。
2026-04-30 16:36:14
200
原创 一个算子有10个并行度,subtask1的barrier先到,会立即把subtask1的状态写入hdfs吗?还是 等10个barrier都到了后,再写入hdfs?
流对齐:在多路输入算子中,当某一条输入流的 Barrier 先到达时,阻塞该流后续数据处理,等待其他输入流的同 Checkpoint Barrier 全部到达,保证在同一 CK 边界下生成一致性状态快照,保障 Exactly-Once 语义。
2026-04-30 15:26:16
359
原创 【单输入算子(普通 map/filter/ 单流 process):不需要对齐,收到 Barrier 直接快照】为啥
单输入算子只有一条数据流,数据与 Barrier 串行顺序流动,天然存在唯一清晰的 Checkpoint 边界,不存在多流版本错乱问题,因此不需要流对齐,收到 Barrier 即可立即冻结状态做快照。
2026-04-30 15:22:22
226
原创 20260114外协面试
在 MySQL 中,无论是 Innodb 还是 MyISAM,都使用了 B+ 树作为索引结构。,通过自动旋转调整维持树结构平衡,确保查找、插入和删除操作的时间复杂度稳定在O(log n)(B树所有节点存数据,B+树仅叶子节点存数据)、。(B树可能提前终止查询,B+树必须到叶子节点)和。(B+树通过叶子链表高效遍历)。B树和B+树的核心区别在于。
2026-01-14 18:53:39
122
原创 Hive date/timestamp/date_sub/date_add/date_format/日期时间格式转换
务必注意输入类型和返回类型!Hive函数-官方文档。
2022-07-16 17:52:57
4316
原创 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
3449
原创 FlinkSQL 列转行/解开map array/unnest/lateral table udtf
将Map展开为多列多行。基于UDTF结果示例2 将数组展开为单列多行。基于UNNEST基于UDTF结果示例3 将Array展开成多列多行end
2022-07-14 11:06:44
8197
原创 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
1456
原创 堆外内存 jvm
换句话说:堆外内存就是把内存对象分配在Java虚拟机的堆以外的内存,这些内存直接受操作系统管理(而不是虚拟机),这样做的结果就是能够在一定程度上减少垃圾回收对应用程序造成的影响。JVM堆外内存 - 晓风残月的博客Full GC时才会回收堆外内存。----Java 内存之直接内存(堆外内存) · 日常学习 · 看云----Major GC和Full GC的区别是什么?触发条件呢? - 知乎针对HotSpot VM的实现,它里面的GC其实准确分类只有两大种:Major GC通常是跟full GC是等价的,收集整
2022-06-13 16:00:18
975
原创 Clickhouse优点 缺点 / Doris 优点 缺点
ch优点:查询速度快,利用多核并行处理单个查询列式存储+压缩,节省空间内置数较多(例如IP转化,URL分析等,预估计算/HyperLoglog等);缺点:不支持事务不支持UPDATE/DELETE操作聚合结果必须小于一台机器的内存大小,否则失败Clickhouse 优点与缺点 (个人测评) - 知乎----Doris支持Array,ch支持Array/嵌套类型/枚举类型等。Doris支持事务和幂等性导入数据,ch不支持。Doris的join性能比较好,ch的单表
2022-05-26 15:53:26
6813
原创 Clickhouse IPv4StringToNum用法与原理/URL函数 protocol domain
selectIPv4StringToNum('1.1.1.1') -- 16843009IPv4的字符串转为十进制数字:IP函数 | ClickHouse Docs
2022-05-26 13:56:31
1084
原创 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
640
原创 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
2745
原创 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
591
原创 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
486
原创 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
3209
原创 Flink AggregateFunction窗口函数,自定义UDAF,UDF(一)
AggregateFunction 比 ReduceFunction 更加的通用,它有三个参数:输入类型(IN)、累加器类型(ACC)和输出类型(OUT)。
2022-04-15 14:10:45
879
原创 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
1602
原创 Leetcode 22. Generate Parentheses - 生成指定数量的有效圆括号,比如输入2,输出()()、(())
Leetcode 22. Generate Parentheses - 生成指定数量的有效圆括号,比如输入2,输出()()、(())
2022-04-11 22:46:50
849
原创 Java list1=list2;list2=null ? list1=list2;list2.clear()?
Java list1=list2;list2=null ? list1=list2;list2.clear()?
2022-04-10 13:27:57
1230
原创 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
739
原创 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
596
原创 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
512
原创 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
545
原创 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
792
原创 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
1051
全国省市县区域名称
2015-11-17
android通过servlet与服务器验证用户信息
2016-03-26
mhd raw metaimage java读取类
2017-10-18
commons-configuration-1.6.jar
2016-07-08
commons-lang-2.5.jar
2016-07-08
android布局中用到dimension,这样的作用是什么?好处是?
2015-12-26
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅