Sawzall (programming language)

From Seo Wiki - Search Engine Optimization and Programming Languages

Jump to: navigation, search

Sawzall is an interpreted, procedural, domain-specific programming language, used specifically by Google, to handle huge quantities of data.

Sawzall is built upon existing infrastructure at Google: Protocol Buffers, the Google File System, the Workqueue, and MapReduce.

Sawzall code

This complete Sawzall program will read the input and produce three results: the number of records, the sum of the values, and the sum of the squares of the values.

count: table sum of int;
total: table sum of float;
sum_of_squares: table sum of float;
x: float = input;
emit count <- 1;
emit total <- x;
emit sum_of_squares <- x * x;

External references

Personal tools

Served in 0.066 secs.