Breakup
The Breakup Stage is used to split an event value into multiple events.
Breakup Type
Break-up operation to perform on the event value. Array, Object, and All are supported.
Array
Split array values types into N events that contain a single scalar each. This operates on arrays of simple and complex types. Upon breakup the stage set event.metadata.breakupIndex
to the array index of the value. An example Array Breakup operation is shown below.
Example Input Event Value
[{
"a": 1,
"b": 2,
"c": 3
}, {
"a": 10,
"b": 20,
"c": 30
}, {
"a": 200,
"b": 200,
"c": 300
}]
Example Output Event Values
Value | Metadata |
---|---|
json
|
json
|
json
|
json
|
json
|
json
|
Object
Split a complex value into N event values containing the values from each of its attributes. Upon breakup the stage sets event.metadata.breakupName
to the name of the attribute associated with the value. An example Array Breakup operation is shown below.
Example Input Event Value
{
"a": 1,
"b": 2,
"c": 3
}
Example Output Event Values
Value | Metadata |
---|---|
json
|
json
|
json
|
json
|
json
|
json
|
All
In this mode if the event written is an array, it follows the above array breakup example. If the event is an object, it follows the object example.