To perform this task in a parallel DBMS requires a user-defined function F that parses the contents of each
record in the Documents table and emits URLs into the database.
This function can be written in a general-purpose language and is
effectively identical to the Map program discussed below. With this
function F, we populate a temporary table with a list of URLs and
then can execute a simple query to calculate the inlink count: