Class RowWriter
java.lang.Object
com.sparsity.sparksee.io.RowWriter
- Direct Known Subclasses:
CSVWriter
RowWriter interface.
Common interface for those writers which dump the data from an string array.
It works as follows: perform as many write operations as necessary and call close once at the end. Once close is called no more write operations can be executed.
Check out the 'Data export' section in the SPARKSEE User Manual for more details on this.
- Author:
- Sparsity Technologies http://www.sparsity-technologies.com
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the writer.voidwrite(StringList row) Writes the next row.
-
Method Details
-
close
Closes the writer.- Throws:
RuntimeException- nullIOException- If the close fails.
-
write
Writes the next row.- Parameters:
row- [in] Row of data.- Throws:
RuntimeException- nullIOException- If bad things happen during the write.
-