You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's common that we use multiple-characters delimiter to separate columns in CVS: such as: [|]
Sometimes, we have no choice as third-party defines the csv format like that.
Sample data:
FirstName[|]LastName[|]Address
John[|]Smith[|]123 Main St.
FasterXML/jackson-dataformat-csv#92 supports to use multiple characters as array element separator, It would be great if same can be done for withColumnSeparator.
I did some google search: seems there is no java library that supports use multiple-characters as the column separator.
Hi @cowtowncoder ,
Instead of using public CsvSchema withColumnSeparator(char sep){}
can we change it to public CsvSchema withColumnSeparator(char[] sep).
and also changes the data type for _columnSeparator and other needed places.
@djay-S Problem is not the method defining separator but implementation behind it -- splitting columns is very performance-sensitive operation, on critical path. So the real work is in decoder, to try to implement it in a way that has negligible performance penalty.
This is the real problem.
(from FasterXML/jackson-dataformat-csv#141 by @jefferyyuan)
It's common that we use multiple-characters delimiter to separate columns in CVS: such as: [|]
Sometimes, we have no choice as third-party defines the csv format like that.
Sample data:
FasterXML/jackson-dataformat-csv#92 supports to use multiple characters as array element separator, It would be great if same can be done for withColumnSeparator.
I did some google search: seems there is no java library that supports use multiple-characters as the column separator.
But the C# CsvHelper does
https://github.com/JoshClose/CsvHelper
The text was updated successfully, but these errors were encountered: