FasterXML / FasterXML/jackson-dataformats-text
Use `CsvSchema.ColumnType.NUMBER` and such to coerce field values from plain `String`s
- Lenguaje dominante
- Java
- Estrellas
- 455
- Forks
- 164
- Merge medio
- 6 d 10 h
- PR fusionados (30 d)
- 2
Descripción
Current: https://github.com/FasterXML/jackson-dataformats-text/tree/master/csv
```
File csvFile = new File(fileName);
CsvMapper mapper = new CsvMapper();
CsvSchema schema =...
MappingIterator> it = mapper.readerFor(Map.class)
.with(schema)
.readValues(csvFile);
while (it.hasNext()) {
Map rowAsMap = it.next();
// access by column name, as defined in the header row...
}
```
Desired:
```
MappingIterator> it = mapper.readerFor(Map.class)
.with(schema)
.readValues(csvFile);
```
e.g., if the 1st column specified in `schema` is CsvSchema.ColumnType.NUMBER(can it be integer and floating), then the 1st column in the map should be number instead of string.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.