Map() method
The following are characteristics of the map function, including examples of the input and output.
- Input: An access record ID and an access record with a <URL,referrer,count> schema.
- Output: A (URL,1) pair for each schema.
Input data
KEY | URL | REF | COUNT
-----+------------+------+-------
24 | noname.org | aka | 6
32 | ibm.com | aka | 2
36 | ibm.com | tul | 20
21 | noname.org | aka | 3
33 | ibm.com | aka | 4
23 | noname.org | prb | 5
31 | ibm.com | aka | 1
35 | ibm.com | tul | 16
22 | noname.org | tul | 4
34 | ibm.com | tul | 8
Intermediate output data
URL | COUNT
------------+--------------
noname.org | 1
noname.org | 1
noname.org | 1
ibm.com | 1
ibm.com | 1
ibm.com | 1
ibm.com | 1
noname.org | 1
ibm.com | 1
ibm.com | 1