Patent ID: 7840585

Claim:
One or more computer-readable storage media comprising computer-executable instructions for generating parallel-processing optimized computer-executable instructions from a host programming context comprising one or more structured queries and commands native to the host programming context, the computer-executable instructions directed to steps comprising: parsing the one or more structured queries to identify an input data source; parsing the one or more structured queries to identify a schema for the input data source, the schema specifying a name and a data type for one or more sections of data from the input data source; translating, in accordance with the schema, the one or more structured queries into an intermediate form by selecting from a library of commands comprising: a process command for applying, in parallel across one or more processes, a function specified by the process command; a distribute command for dividing data, in parallel across one or more processes, into two or more subdivisions; an aggregate command for combining, in parallel across one or more processes, two or more discrete collections of data; a join command for combining, in parallel across one or more processes, each segment of a first join input data with a corresponding segment of a second join input data; and a cross-product command for combining, in parallel across one or more processes, each segment of a first cross-product input data with each segment of a second cross-product input data; compiling the intermediate form into a first portion of the parallel-processing-optimized computer-executable instructions; compiling, with the intermediate form, the commands native to the host programming context into a second portion of the parallel-processing-optimized computer-executable instructions if the host programming context is a program; and interpreting the commands native to the host programming context into the second portion of the parallel-processing-optimized computer-executable instructions if the host programming context is a script.