public class RowWriter
extends java.lang.Object
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.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
void |
write(StringList row)
Writes the next row.
|
public void close() throws java.lang.RuntimeException, java.io.IOException
java.lang.RuntimeException
- nulljava.io.IOException
- If the close fails.public void write(StringList row) throws java.lang.RuntimeException, java.io.IOException
row
- [in] Row of data.java.lang.RuntimeException
- nulljava.io.IOException
- If bad things happen during the write.