Skip to Content
Java: Data Science Made Easy
book

Java: Data Science Made Easy

by Richard M. Reese, Jennifer L. Reese, Alexey Grigorev
July 2017
Beginner to intermediate
715 pages
17h 3m
English
Packt Publishing
Content preview from Java: Data Science Made Easy

Hadoop MapReduce

As we already said, Hadoop MapReduce is a library, that allows you to process data in a scalable way. 

There are two main abstractions in the MapReduce framework: Map and Reduce. This idea originally comes from the functional programming paradigm, where map and reduce are high-level functions:

  • map: This takes in a function and a sequence of elements and applies the function to each of the elements in turn. The result is a new sequence. 
  • reduce: This also takes in a function and a sequence, and it uses this function to process the sequence and ultimately return a single element in the end. 

In this book, we have already used the map function from the Java Stream API quite extensively, starting with Chapter 2, Data Processing ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Data Science Cookbook

Java Data Science Cookbook

Rushdi Shams
Java for Data Science

Java for Data Science

Walter Molina, Richard M. Reese, Shilpi Saxena, Jennifer L. Reese

Publisher Resources

ISBN: 9781788475655Supplemental Content