tinkerpop/blueprints — pull request #445 by erickt (2013-10-26 00:34:12+00:00)
Title: Add a CSV reader/writer

This pull request adds a CSV reader/writer to Blueprints. As opposed to the other readers/writers, this CSV support splits up the vertices and edges into separate files. This is similar to how Gephi supports [CSV import](http://wiki.gephi.org/index.php/Import_CSV_Data). It wouldn't be that difficult to support a combination vertex/edge CSV file, though.

There are a couple implementation details I wanted to call out in case any of them are an issue:

* The `CSVReader` and `CSVWriter` supports changing the separator and a couple other common CSV options, so it can be used to parse a variety of formats.
* The `CSVReader` treats all values as a `String` type, including the `id`.
* The `CSVReader` uses the same `BatchGraph` across the `inputVertices` and `inputEdges`. I needed to do this so inputEdges could discover the vertex ids without setting `BatchGraph.setLoadingFromScratch(true)`. I needed to do that because the `Dex` backend doesn't seem to support that option.
* The `CSVWriter` just calls `.toString()` on each property, so it won't do anything sensible with a list or map property.
* The `CSVReader` and `CSVWriter` treat empty `""` strings as `null`s.