|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.base.node.io.arffreader.ARFFTable
public class ARFFTable
| Constructor Summary | |
|---|---|
ARFFTable(URL arffFileLocation,
DataTableSpec tSpec,
String rowKeyPrefix)
Create a new DataTable reading its content from an ARFF file at the specified location. |
|
| Method Summary | |
|---|---|
static DataTableSpec |
createDataTableSpecFromARFFfile(URL fileLoc,
ExecutionMonitor exec)
Reads in the header of the specified ARFF file and returns a corresponding table spec object. |
DataTableSpec |
getDataTableSpec()
Returns the DataTableSpec object of this table which gives
information about the structure of this data table. |
RowIterator |
iterator()
Returns a row iterator which returns each row one-by-one from the table. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ARFFTable(URL arffFileLocation,
DataTableSpec tSpec,
String rowKeyPrefix)
arffFileLocation - valid URL which points to the ARFF file to readtSpec - the structure of the table to createrowKeyPrefix - row keys are constructed like rowKeyPrefix + lineNo| Method Detail |
|---|
public DataTableSpec getDataTableSpec()
DataTableSpec object of this table which gives
information about the structure of this data table.
getDataTableSpec in interface DataTablepublic RowIterator iterator()
iterator in interface Iterable<DataRow>iterator in interface DataTableDataRow
public static DataTableSpec createDataTableSpecFromARFFfile(URL fileLoc,
ExecutionMonitor exec)
throws IOException,
org.knime.core.node.InvalidSettingsException,
CanceledExecutionException
fileLoc - the location of the ARFF file to readexec - to enable users to cancel this process
IOException - if the file location couldn't be opened
org.knime.core.node.InvalidSettingsException - if the file contains an invalid format
CanceledExecutionException - if user canceled
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||