Parallel prefix scan.
Parallel prefix scan. Analogous to scan on scala sequences.
The zero element to use for initializing scan (sub)sequences. This element may be used as the initial value at multiple parallel scan subsequences.
The scanning function. Maps the latest result of scan, plus a next element, to the next prefix.
A new RDD containing the parallel prefix scan of the input elements
Sequential-only prefix scan.
Sequential-only prefix scan. Analogous to scanLeft on scala sequences
The zero element for initalizing the sequential prefix scan
maps the latest prefix scan value, plus a next element, to the next prefix scan value
A new RDD containing the sequential prefix scan of the input elements.