上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 37 下一页
摘要: drop table tmp_mytest ; create table tmp_mytest ( id int , type varchar(10) ) ; insert into tmp_mytest values(1, '1'); insert into tmp_mytest values(2 阅读全文
posted @ 2025-03-19 22:23 钱塘江畔 阅读(9) 评论(0) 推荐(0)
摘要: 这个方案的核心实现思路就是进行两阶段聚合。 第一次是局部聚合,先给每个key都打上一个随机数,比如10以内的随机数,此时原先一样的key就变成不一样的了,比如(hello, 1) (hello, 1) (hello, 1) (hello, 1),就会变成(1_hello, 1) (1_hello, 阅读全文
posted @ 2025-03-19 22:21 钱塘江畔 阅读(29) 评论(0) 推荐(0)
摘要: Object getClass() 获取getClass()返回的Class对象,看看都有哪些内容 Test test = new Test(); Class<? extends Test> aClass = test.getClass(); Method[] methods = aClass.ge 阅读全文
posted @ 2025-03-19 22:21 钱塘江畔 阅读(9) 评论(0) 推荐(0)
摘要: 总线(Bus)是计算机各种功能部件之间传送信息的公共通信干线,它是由导线组成的传输线束, 按照计算机所传输的信息种类,计算机的总线可以划分为数据总线、地址总线和控制总线,分别用来传输数据、数据地址和控制信号。总线是一种内部结构,它是cpu、内存、输入、输出设备传递信息的公用通道,主机的各个部件通过总 阅读全文
posted @ 2025-03-19 22:20 钱塘江畔 阅读(16) 评论(0) 推荐(0)
摘要: python代码加密 https://zhuanlan.zhihu.com/p/54296517 阅读全文
posted @ 2025-03-19 22:19 钱塘江畔 阅读(9) 评论(0) 推荐(0)
摘要: 摘自https://www.cnblogs.com/dolphin0520/p/3920373.html 一、内存模型相关的一些知识 大家都知道,计算机在执行程序时,每条指令都是在CPU中执行的,而执行指令过程中,势必涉及到数据的读取和写入。由于程序运行过程中的临时数据是存放在主存(物理内存)当中的 阅读全文
posted @ 2025-03-19 22:19 钱塘江畔 阅读(16) 评论(0) 推荐(0)
摘要: 由上图可以看出:KafkaProducer有两个基本线程: 主线程: 负责消息创建,拦截器,序列化器,分区器等操作,并将消息追加到消息收集器 RecoderAccumulator中; 消息收集器RecoderAccumulator为每个分区都维护了一个Deque<ProducerBatch> 类型的 阅读全文
posted @ 2025-03-19 22:18 钱塘江畔 阅读(25) 评论(0) 推荐(0)
摘要: # Connection to node -1 could not be established. Broker may not be available > server.properties 配置文件中 > listeners=PLAINTEXT://192.168.80.101:9092 # 阅读全文
posted @ 2025-03-19 22:17 钱塘江畔 阅读(13) 评论(0) 推荐(0)
摘要: # 获取最大值 arr=[1,2,3, -1] max=max(arr) print(max) # 获取最大值的索引 idx=arr.index(max) # 删除最大值 arr.remove(max) print(arr) 阅读全文
posted @ 2025-03-19 22:16 钱塘江畔 阅读(10) 评论(0) 推荐(0)
摘要: **1.** **数字类型** Python数字类型主要包括int(整型)、long(长整型)和float(浮点型),但是在Python3中就不再有long类型了。 **int****(整型)** 在32位机器上,整数的位数是32位,取值范围是-231~231-1,即-2147483648~2147 阅读全文
posted @ 2025-03-19 22:15 钱塘江畔 阅读(26) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 37 下一页