@@ -31,30 +31,30 @@ nodes represent stateless copies of the original Task after splitting the input,
3131
3232Types of Splitter
3333-----------------
34- Whenever a *Task * has more complicated inputs,
35- i.e. multiple fields, there are two ways of creating the mapping,
36- each one is used for different application.
37- These *splitters * are called *scalar splitter * and *outer splitter *.
34+ Whenever a *Task * has more complicated inputs, for example, multiple fields,
35+ there are two ways of creating the mapping, each one is used for different application.
36+ These *splitters * are called *inner splitter * and *outer splitter *.
3837They use a special, but Python-based syntax as described next.
3938
40- Scalar Splitter
39+ Inner Splitter
4140---------------
42- A *scalar splitter * performs element-wise mapping and requires that the lists of
43- values for two or more fields to have the same length. The *scalar splitter * uses
41+ A *inner splitter * performs element-wise mapping and requires that the lists of
42+ values for two or more fields to have the same length. The *inner splitter * uses
4443Python tuples and its operation is therefore represented by a parenthesis, ``() ``:
4544
4645.. math ::
4746
4847 S = (x, y) : x=[x_1 , x_2 , .., x_n],~y=[y_1 , y_2 , .., y_n] \mapsto (x, y)=(x_1 , y_1 ),..., (x, y)=(x_n, y_n),
4948
50-
5149 where `S ` represents the *splitter *, `x ` and `y ` are the input fields.
5250This is also represented as a diagram:
5351
5452.. figure :: ../_static/images/nd_spl_4.png
5553 :figclass: h!
5654 :scale: 80%
5755
56+ Inner splitters can be analogized to the Python builtin function :func: `zip `.
57+
5858
5959Outer Splitter
6060--------------
@@ -85,5 +85,6 @@ and `inp3`. This can be extended to arbitrary complexity.
8585In additional, the output can be merge at the end if needed.
8686This will be explained in the next section.
8787
88+ Outer splitters can be analogized to the Python function :func: `itertools.product `.
8889
8990.. _Map-Reduce : https://en.wikipedia.org/wiki/MapReduce
0 commit comments