SparkseeNet  5.2.0
Public Member Functions | List of all members
com.sparsity.sparksee.io.RowReader Class Reference

RowReader interface. More...

Inheritance diagram for com.sparsity.sparksee.io.RowReader:
Inheritance graph

Public Member Functions

void Close () throws System.IO.IOException
 Closes the reader. More...
 
int GetRow () throws System.IO.IOException
 The row number for the current row. More...
 
bool Reset () throws System.IO.IOException
 Moves the reader to the beginning. More...
 
bool Read (com.sparsity.sparksee.gdb.StringList row) throws System.IO.IOException
 Reads the next row as a string array. More...
 

Detailed Description

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.

Author
Sparsity Technologies http://www.sparsity-technologies.com

Member Function Documentation

void com.sparsity.sparksee.io.RowReader.Close ( ) throws System.IO.IOException

Closes the reader.

Exceptions
System.IO.IOExceptionIf the close fails.
int com.sparsity.sparksee.io.RowReader.GetRow ( ) throws System.IO.IOException

The row number for the current row.

Returns
The current row number; 0 if there is no current row.
Exceptions
System.IO.IOExceptionIf it fails.
bool com.sparsity.sparksee.io.RowReader.Read ( com.sparsity.sparksee.gdb.StringList  row) throws System.IO.IOException

Reads the next row as a string array.

Parameters
row[out] A string list with each comma-separated element as a separate entry.
Returns
Returns true if a row had been read or false otherwise.
Exceptions
System.IO.IOExceptionIf bad things happen during the read.
bool com.sparsity.sparksee.io.RowReader.Reset ( ) throws System.IO.IOException

Moves the reader to the beginning.

Restarts the reader.

Returns
true if the reader can be restarted, false otherwise.
Exceptions
System.IO.IOExceptionIf bad things happen during the restart.