🔹 Accumulation Concept
Accumulation is a process for:
➡️ adding up the values incrementally (running total) of a field in a data stream.
So each record will carry the accumulated results of the previous record.
🔹 Parameter
- Accumulated Field
Field whose accumulation will be calculated (for example: views).
🔹 Input & Output
- Input Field
All original fields of the data
- Output Field
- All input fields
- new field:accumulation
🔹 How it works
For example, there is input data:
id views
---------
1 10
2 20
3 5
4 15
If we use Accumulator on the field views , then the result is:
id views accum_views
-----------------------
1 10 10
2 20 30
3 5 35
4 15 50