![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hashcode
文章平均质量分 95
github_38838414
这个作者很懒,什么都没留下…
展开
-
Java 深入理解hashcode()方法——Boolean
Java 深入理解hashcode()方法——Boolean环境:jdk1.8 public static void main(String []args) { Boolean b2=true; Boolean b3=false; System.out.println("ture的hash值:"+b2.hashCode()...原创 2018-05-29 22:10:00 · 1941 阅读 · 0 评论 -
一致性哈希算法
参考: 什么是一致性Hash算法 几种经典的hash算法和一般的取模,分段方法相比一致性hash的优势传统的取模方式例如10条数据,3个节点,如果按照取模的方式,那就是node a: 0,3,6,9node b: 1,4,7node c: 2,5,8当增加一个节点的时候,数据分布就变更为node a:0,4,8node b:1,5,9node c: ...原创 2018-08-10 09:13:30 · 603 阅读 · 0 评论