presto-main/src/main/java/io/prestosql/operator/aggregation/histogram/ValueStore.java/ValueStore/getBucketId
class ValueStore:    private int getBucketId(long valueHash, int mask)
    {
        return (int) (valueHash & mask);
    }