News for hackers. Stuff that matters.
Re:Sizzle: A compiler + runtime for Google's Sawzall languag... by anthonyu on Saturday November 06, 2010 @05:29AM (#1876532)
That Document structure stores a URL and its pagerank for later processing.

In the Sawzall paper, it's used in a program that reports the top URL from a domain, ranked by pagerank:

     proto "document.proto"
     max_pagerank_url:
          table maximum(1) [domain: string] of url: string
                weight pagerank: int;

     doc: Document = input;
     emit max_pagerank_url[domain(doc.url)] <- doc.url
          weight doc.pagerank;

There are no comments on this comment yet.