presto-main/src/main/java/io/prestosql/operator/aggregation/histogram/GroupedTypedHistogram.java/GroupedTypedHistogram/getBucketIdForNode
class GroupedTypedHistogram:    private int getBucketIdForNode(int nodePointer, int mask)
    {
        long valueAndGroupHash = valueAndGroupHashes.get(nodePointer); // without mask
        int bucketId = (int) (valueAndGroupHash & mask);

        return bucketId;
    }