SparkseePython
6.0.2
|
Public Member Functions | |
def | close (self) |
Closes the reader. More... | |
def | reset (self) |
Moves the reader to the beginning. More... | |
def | read (self, row) |
Reads the next row as a string array. More... | |
def | get_row (self) |
The row number for the current row. More... | |
RowReader interface.
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 | ) |
Closes the reader.
IOError | If the close fails. |
def sparksee.RowReader.get_row | ( | self | ) |
The row number for the current row.
IOError | If it fails. |
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. |
def sparksee.RowReader.reset | ( | self | ) |
Moves the reader to the beginning.
Restarts the reader.
IOError | If bad things happen during the restart. |