...
Pivot Snap is a Transform-type Snap that transforms the selected fields by shifting the selected field names and their values to values of a target field and target value field, respectively.
...
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
---|---|---|---|---|
Input | Document |
|
| Documents with a nested or flat map data. |
Output | Document |
|
| Stream of documents with a pivoted map data . The and the pivoted fields. |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab:
Learn more about Error handling in Pipelines. |
...
Info |
---|
|
Field Name | Field Type | Field Dependency | Description | |
---|---|---|---|---|
Label* Default Value: Pivot | String | None. | Specify a unique name for the Snap. | |
Selected Fields | Use this field set fieldset to select fields to be pivoted or remain unchanged in the output document based on the value of the Treat selected fields as static checkbox. | |||
Selected Field Default Value: N/A | String/Suggestion | None. | Specify or select the field to be included in the action. | |
If Field Absent Default Value: N/A | Dropdown list | None. | Select one of the following options to apply for the selected field:
| |
Treat selected fields as static Default Value: Deselected | Checkbox | None. | Select this checkbox to treat selected fields as static in the output document. Selecting this checkbox enables the following fields:
Selecting this checkbox affects the processing of the input documents and preserves the structure of the selected fields while when the remaining fields are pivoted. | |
Target Pivoted Field* Default Value: N/A | String/Suggestion | None. | Specify or select the target pivoted field. | |
Target Pivoted Value* Default Value: N/A | String/Suggestion | None. | Specify or select the target pivoted value. | |
No Pivots Target Field Behavior* Default Value: Substitute null | Dropdown list | Appears when you select the Treat selected fields as static checkbox. | Select one of the following options (behavior) you want to apply on the target fields—by default if no fields remain to be pivoted (all fields selected as static).
| |
No Pivots Target Value Behavior* Default Value: Substitute null | Dropdown list | Appears when you select the Treat selected fields as static checkbox. | Select one of the following options (behavior) you want to apply on the target fields—by default if no fields remain to be pivoted (all fields selected as static).
| |
Target field full path Default Value: Deselected | Checkbox | Appears when you deselect Treat selected fields as static checkbox. | Select this checkbox to include the target field as a full path when the Pivot field property value is nested. | |
Snap Execution Default Value: | Dropdown list | N/A | Select one of the following three modes in which the Snap executes:
|
...