IP Library Granted Patent US 8,555,265
Granted Patent B2
US 8,555,265 · App. 12/794,348 · Granted Oct 8, 2013

Parallel processing of data

Inventors: Craig D. Chambers (Seattle, WA); Ashish Raniwala (Kirkland, WA); Frances J. Perry (Seattle, WA); Stephen R. Adams (Seattle, WA); Robert R. Henry (Seattle, WA); Robert Bradshaw (Seattle, WA); Nathan Weizenbaum (Seattle, WA)
Assignee: Google Inc.
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 8,555,265
App. No.
12/794,348
Granted
Oct 8, 2013
Kind
B2
Abstract

A data parallel pipeline may specify multiple parallel data objects that contain multiple elements and multiple parallel operations that operate on the parallel data objects. Based on the data parallel pipeline, a dataflow graph of deferred parallel data objects and deferred parallel operations corresponding to the data parallel pipeline may be generated and one or more graph transformations may be applied to the dataflow graph to generate a revised dataflow graph that includes one or more of the deferred parallel data objects and deferred, combined parallel data operations. The deferred, combined parallel operations may be executed to produce materialized parallel data objects corresponding to the deferred parallel data objects.

Claims (34)

1. A method comprising:

executing an application that includes a data parallel pipeline, wherein the data parallel pipeline specifies multiple parallel data objects that contain multiple elements and multiple parallel operations that operate on the parallel data objects;

generating, based on the data parallel pipeline, a dataflow graph of deferred parallel data objects and deferred parallel operations corresponding to the data parallel pipeline;

applying one or more graph transformations to the dataflow graph to generate a revised dataflow graph that includes one or more of the deferred parallel data objects and deferred, combined parallel data operations; and

executing the deferred, combined parallel operations to produce materialized parallel data objects corresponding to the deferred parallel data objects,

wherein the deferred, combined parallel data operations includes at least one generalized mapreduce operation, the generalized mapreduce operation including multiple, parallel map operations and multiple, parallel reduce operations and being translatable to a single mapreduce operation that includes a single map function to implement the multiple, parallel map operations and a single reduce function to implement the multiple, parallel reduce operations, and

wherein each deferred parallel operation includes a pointer to a parallel data object that is an input to the deferred parallel operation and a pointer to a deferred parallel object that is an output of the deferred parallel operation.

2. The method of claim 1 wherein executing the generalized mapreduce operation comprises translating the combined mapreduce operation to the single mapreduce operation and executing the single mapreduce operation.

3. The method of claim 2 wherein executing the single mapreduce operation comprises determining whether to execute the single mapreduce operation as a local, sequential operation or a remote, parallel operation.

4. The method of claim 2 wherein translating the generalized mapreduce operation to the single mapreduce operation comprises generating a map function that includes the multiple map operations and a reducer function that includes the multiple reducer operations.

5. The method of claim 1 wherein each deferred parallel data object includes a pointer to a parallel data operation that produces the parallel data object.

6. The method of claim 1 wherein each materialized object includes data contained in the object.

7. The method of claim 1 wherein the multiple parallel data objects are first class objects of a host programming language.

8. The method of claim 1 wherein the pipeline further includes a single data object that contains a single element and the dataflow graph includes a corresponding deferred single data object.

9. The method of claim 8 wherein at least one of the multiple parallel operations in the pipeline operates on the single data object and one of the multiple parallel data objects and the dataflow graph includes a corresponding deferred parallel operation that operates on a deferred single data object and a deferred parallel data object.

10. The method of claim 1 further comprising caching one or more results of the execution of the deferred, combined parallel operations for use in a future execution of the data parallel pipeline.

11. A system comprising:

one or more processing devices;

one or more storage devices, the storage devices storing instructions that, when executed by the one or more processing devices, implement the following:

an application that includes a data parallel pipeline, wherein the data parallel pipeline specifies multiple parallel data objects that contain multiple elements and multiple parallel operations that operate on the parallel data objects;

an evaluator configured, based on the data parallel pipeline, to generate a dataflow graph of deferred parallel data objects and deferred parallel operations corresponding to the data parallel pipeline;

an optimizer configured to apply one or more graph transformations to the dataflow graph to generate a revised dataflow graph that includes one or more of the deferred parallel data objects and deferred, combined parallel data operations; and

an executor configured to execute the deferred, combined parallel operations to produce materialized parallel data objects corresponding to the deferred parallel data objects,

wherein the deferred, combined parallel data operations includes at least one generalized mapreduce operation, the generalized mapreduce operation including multiple, parallel map operations and multiple, parallel reduce operations and being translatable to a single mapreduce operation that includes a single map function to implement the multiple, parallel map operations and a single reduce function to implement the multiple, parallel reduce operations, and

wherein each deferred parallel operation includes a pointer to a parallel data object that is an input to the deferred parallel operation and a pointer to a deferred parallel object that is an output of the deferred parallel operation.

12. The system of claim 1 wherein, to execute the generalized mapreduce operation, the executor is configured to translate the combined mapreduce operation to the single mapreduce operation and execute the single mapreduce operation.

13. The system of claim 12 wherein, to execute the single mapreduce operation, the executor is configured to determine whether to execute the single mapreduce operation as a local, sequential operation or a remote, parallel operation.

14. The system of claim 12 wherein, to translate the generalized mapreduce operation to the single mapreduce operation, the executor is configured to generate a map function that includes the multiple map operations and a reducer function that includes the multiple reducer operations.

15. The system of claim 1 wherein each deferred parallel data object includes a pointer to a parallel data operation that produces the parallel data object.

16. The system of claim 1 wherein each materialized object includes data contained in the object.

17. The system of claim 1 wherein the multiple parallel data objects are first class objects of a host programming language.

18. The system of claim 1 wherein the pipeline further includes a single data object that contains a single element and the dataflow graph includes a corresponding deferred single data object.

19. The system of claim 18 wherein at least one of the multiple parallel operations in the pipeline operates on the single data object and one of the multiple parallel data objects and the dataflow graph includes a corresponding deferred parallel operation that operates on a deferred single data object and a deferred parallel data object.

20. The system of claim 1 wherein the executor is configured to cache one or more results of the execution of the deferred, combined parallel operations for use in a future execution of the data parallel pipeline.

Assignments (2)
CHANGE OF NAME Recorded Oct 2, 2017
From: GOOGLE INC.
To: GOOGLE LLC
Reel/Frame 044101/0299 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 23, 2010
From: CHAMBERS, CRAIG D.; RANIWALA, ASHISH; PERRY, FRANCES J.; ADAMS, STEPHEN R.; HENRY, ROBERT R.; BRADSHAW, ROBERT; WEIZENBAUM, NATHAN
To: GOOGLE INC.
Reel/Frame 024873/0278 →
Continuity (2)
Provisional Application 61331148 · May 4, 2010
Related Publication 20110276789A1 · Nov 10, 2011