Development on Va...
Follow
Find tag "MapReduce"
8.3K views | +7 today
Development on Various Platforms
Your new post is loading...
Your new post is loading...
Rescooped by Ertunç Efeoğlu from Big Data and NoSQL Daily
Scoop.it!

MapReduce with Hadoop Streaming in bash - Part 2 :: Oracle Alchemist

MapReduce with Hadoop Streaming in bash - Part 2 :: Oracle Alchemist | Development on Various Platforms | Scoop.it
Calculating document frequency with MapReduce using bash scripts in Hadoop Streaming for TF-IDF. Run on the free Cloudera QuickStart VM.

Via Sergeyan
more...
No comment yet.
Rescooped by Ertunç Efeoğlu from JavaScript for Line of Business Applications
Scoop.it!

Searching using Array.prototype.reduce

Searching using Array.prototype.reduce | Development on Various Platforms | Scoop.it

Searching for a particular element in a JavaScript array is often carried out using a typical iteration. In some cases, forEach and some can be used as well. What is often overlooked is the potential use of Array.prototype.reduce to perform such an operation.

Let’s take a look at the following problem: find the longest string in an array of strings. An imperative solution looks something like the following code (usingforEach may simplify the loop but the idea remains the same): ...

A version which relies on reduce is a single statement: ...


Via Jan Hesse
more...
No comment yet.