liveBook · Manning

Data transformation

As explained in Advanced Algorithms and Data Structures

A map operation transforms each input record or partition into intermediate information relevant to a later computation.

Data transformation maps each input record, or each partition handled by a machine, into intermediate information needed by a later computation. In MapReduce, the map stage extracts relevant facts rather than producing the final aggregate. section 13.2.2

A useful transformation:

  • Receives a dataset entry or partition. section 13.2.2
  • Extracts information relevant to the final result. section 13.2.2
  • Passes intermediate output to a later reduction step, which groups homogeneous entries and combines them. section 13.2.2

Recognizing coins before counting

A mapper can run coin-recognition software on its assigned data, record each detected denomination, and send unsorted occurrences onward. Reducers then count, sum, or filter entries for each denomination. section 13.2.2

$100: 1
50¢: 1
$100: 1
$1: 1
25¢: 1
...

An intermediate occurrence list makes the transformation visible before reduction: each detected denomination appears as a separate mapped entry. section 13.2.2

How Advanced Algorithms and Data Structures covers it

How deep it goes
Defines partition-level mapping and its handoff to reduction, while deferring detailed implementation beyond coin recognition and output handling.
Examples
Uses coin-recognition output containing unsorted denomination occurrences as the concrete mapped artifact.
What you can do after
Apply map operations to extract intermediate records that later reducers can count, sum, or filter.
How it connects
Connects data transformation with MapReduce, Reduce, combiners, parallel computing, and distributed aggregation.

Also explained in

Compare how 20 books explain data transformation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Advanced Algorithms and Data Structures. The section links point to the parts of the book it draws on.