Public Member Functions | |
def | close |
Closes the reader. | |
def | get_row |
The row number for the current row. | |
def | reset |
Moves the reader to the beginning. | |
def | read |
Reads the next row as a string array. |
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.
def sparksee.RowReader.close | ( | self | ) |
def sparksee.RowReader.get_row | ( | self | ) |
The row number for the current row.
IOError | If it fails. |
Reimplemented in sparksee.CSVReader.
def sparksee.RowReader.reset | ( | self | ) |
Moves the reader to the beginning.
Restarts the reader.
IOError | If bad things happen during the restart. |
Reimplemented in sparksee.CSVReader.
def sparksee.RowReader.read | ( | self, | ||
row | ||||
) |
Reads the next row as a string array.
row | [out] A string list with each comma-separated element as a separate entry. |
IOError | If bad things happen during the read. |
Reimplemented in sparksee.CSVReader.