(long key, long seed, int index)
| 146 | } |
| 147 | |
| 148 | private int getHash(long key, long seed, int index) { |
| 149 | long r = Long.rotateLeft(Hash.hash64(key, seed), 21 * index); |
| 150 | r = Hash.reduce((int) r, blockLength); |
| 151 | r = r + index * blockLength; |
| 152 | return (int) r; |
| 153 | } |
| 154 | |
| 155 | private int fingerprint(long hash) { |
| 156 | return (int) (hash & ((1 << BITS_PER_FINGERPRINT) - 1)); |