uniVocity-parsers is a suite of extremely fast and reliable parsers for Java. It provides a consistent interface for handling different file formats, and a solid framework for the development of new parsers.
917
stars
252
forks
source link
Is there a consice, simple and clear example of reading a CSV into beans in a streaming format? #481
Like the question says, how do I read rows into beans in a streaming manner? All the examples I see end up calling .getRecords(). I do not want to read everything in memory. I would like to also keep track of the number of rows.
Like the question says, how do I read rows into beans in a streaming manner? All the examples I see end up calling
.getRecords()
. I do not want to read everything in memory. I would like to also keep track of the number of rows.Additionally, is it possible to set a batch size?