I have a file with a list of string (one cloumn). File example
sdfsdfsdf
hfhfhfghf
dfgdggdfg
pookokkoo
base on the documentation on monetdb web site, I have to create a BAT file.
How do I convert my file with strings into a BAT file ready to be imported in monetdb? How do I do this from Java?
Thanks,
monetdb site doc http://www.monetdb.org/Documentation/Cookbooks/SQLrecipies/BinaryBulkLoad
From the Documentation:
For variable length strings, the file should have one C-based string value per line, terminated by a newline, and it is processed without escape character conversion.
Since this is exactly the format that you have, you can use it directly.
A technical note on the side: Strings in MonetDB are dictionary compressed which makes it really hard to generate the binary representation "by hand".