presto-main/src/main/java/io/prestosql/operator/aggregation/histogram/HashUtil.java/HashUtil/nextBucketId
class HashUtil:    public static int nextBucketId(int bucketId, int mask, int probe)
    {
        return (bucketId + probe) & mask;
    }