FasterXML / FasterXML/jackson-dataformats-text

Demultiplexer field

オープン
#126 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
csv
主要言語
Java
スター
455
フォーク
164
平均マージ
6日 10時間
マージ済み PR(30日)
2

説明

Hi,

It's a common scenario in CSV files to have a demultiplexer field like:

```java
class RowObject {
public String f1;
public String f2;
public List f3demux;
public String f4;
}

var myExample = new RowObject();
myExample.f1 = "a";
myExample.f2 = "b";
myExample.f3demux = List.of("c1", "c2", "c3");
myExample.f4 = "d";
```

should be mapped like:

```csv
f1, f2, f3demux, f4
a , b, c1, d
a , b, c2, d
a , b, c3, d
```

is there any way to make this happen in `jackson-dataformat-csv`
Having an object that is actually mapped to many rows?

Didn't find any examples or documentation on this matter
Thanks in advance! Great library

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。