FasterXML / FasterXML/jackson-dataformats-text

Demultiplexer field

Ouverte
#126 3 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
csv
Langage dominant
Java
Étoiles
455
Forks
164
Merge moyen
6 j 10 h
PR mergées (30 j)
2

Description

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

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.