Re: csv data format with ordered maps

2018-03-07 Thread Dennis Holunder
Thx, In newer camel versions it is indeed public. Unfortunately, I can't upgrade right now 2018-03-07 16:45 GMT+01:00 Claus Ibsen-2 [via Camel] : > Hi > > I logged a ticket and implemented this > https://issues.apache.org/jira/browse/CAMEL-12332 > > The CsvRecordConverter is a public interface fro

Re: csv data format with ordered maps

2018-03-07 Thread Claus Ibsen
Hi I logged a ticket and implemented this https://issues.apache.org/jira/browse/CAMEL-12332 The CsvRecordConverter is a public interface from camel-csv. You can implement your own, and configure on the dataformat On Wed, Mar 7, 2018 at 4:26 PM, Dennis Holunder wrote: > But you could make CsvRec

Re: csv data format with ordered maps

2018-03-07 Thread Dennis Holunder
But you could make CsvRecordConverter public, so I could implement the mapper myself. Or you implement converting of CSVRecord to LinkedHashMap, shouldn't be a big deal 2018-03-07 16:17 GMT+01:00 Claus Ibsen-2 [via Camel] : > Hi > > Ah okay that is unfortunately in the commons-csv implementation.

Re: csv data format with ordered maps

2018-03-07 Thread Claus Ibsen
Hi Ah okay that is unfortunately in the commons-csv implementation. You would need to report this to them. Sadly there is no way to get the mapping on CSVRecord so we can get the column headers (we could maybe do some reflection as workaround). On Wed, Mar 7, 2018 at 3:29 PM, Dennis Holunder wr

Re: csv data format with ordered maps

2018-03-07 Thread Dennis Holunder
in camel-csv component CsvRecordConverters.mapConverter().convertRecord(CSVRecord record) it calls CSVRecord.toMap() which returns HashMap but CSVRecord is in org.apache.commons.csv would be great if you could change it. 2018-03-07 13:13 GMT+01:00 Claus Ibsen-2 [via Camel] : > Hi > > Can you

Re: csv data format with ordered maps

2018-03-07 Thread Claus Ibsen
Hi Can you point to where it creates HashMap, maybe we can change that to LinkedHashMap. On Wed, Mar 7, 2018 at 12:08 PM, Dennis Holunder wrote: > Hello, > > I need a CSV record mapper which would use maps, but ordered ones, > because I need the name of the first header field. Current > implemen