Skip to content

Commit

Permalink
Update docs about splitCsv() operator (#4163)
Browse files Browse the repository at this point in the history


Signed-off-by: Jesse <90865804+dxu104@users.noreply.github.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
  • Loading branch information
dxu104 and pditommaso committed Sep 3, 2023
1 parent 3e8cd48 commit 1dfb621
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/operator.md
Original file line number Diff line number Diff line change
Expand Up @@ -1384,6 +1384,10 @@ Channel
.splitCsv(header: ['col1', 'col2', 'col3'], skip: 1 )
.view { row -> "${row.col1} - ${row.col2} - ${row.col3}" }
```
:::{note}
- By default, the `splitCsv` operator returns each row as a *list* object. Items are accessed by using the 0-based column index.
- When the `header` is specified each row is returned as a *map* object (also known as dictionary). Items are accessed via the corresponding column name.
:::

Available options:

Expand Down

0 comments on commit 1dfb621

Please sign in to comment.