Download as pdf or txt
Download as pdf or txt
You are on page 1of 25

Relational Algebra Operators

using
MapReduce
Selection
• Map: For each tuple t in relation R, test if it
satisfies condition C. If so, produce the key-value
pair (t, t). That is, both the key and value are t.
• Reduce: The Reduce function is the identity. It
simply passes each key-value pair to the output.
Selection(B <= 3). Select all the rows where
value of B is less than or equal to 3.
Data partitioned based on number of reducers
Projection
projection(A, B)
Partitioned:
Union
Intersection
Difference
Natural Join

You might also like