摘要:public int getPartition(K key, V value, int numReduceTasks) { return (key.hashCode() & Integer.MAX_VALUE) % numReduceTasks; } java String 的hashCode:
阅读全文
posted @ 2019-06-26 20:47
posted @ 2019-06-26 20:47
posted @ 2015-05-01 16:29