public class RowReader
extends java.lang.Object
Common interface for those readers which get the data as an string array.
It works as follows: perform as many read operations as necessary and call close once at the end. Once close is called no more read operations can be executed.
Check out the 'Data import' section in the SPARKSEE User Manual for more details on this.
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the reader.
|
int |
getRow()
The row number for the current row.
|
boolean |
read(StringList row)
Reads the next row as a string array.
|
boolean |
reset()
Moves the reader to the beginning.
|
public void close() throws java.io.IOException
java.io.IOException
- If the close fails.public boolean reset() throws java.io.IOException
Restarts the reader.
java.io.IOException
- If bad things happen during the restart.public boolean read(StringList row) throws java.io.IOException
row
- [out] A string list with each comma-separated element as a separate entry.java.io.IOException
- If bad things happen during the read.public int getRow() throws java.io.IOException
java.io.IOException
- If it fails.