presto-main/src/main/java/io/prestosql/operator/PartitionedLookupSource.java/PartitionedLookupSource/decodePartition
class PartitionedLookupSource:    private int decodePartition(long partitionedJoinPosition)
    {
        return (int) (partitionedJoinPosition & partitionMask);
    }