|Constructor and Description|
Create a new DataTable reading its content from an ARFF file at the specified location.
|Modifier and Type||Method and Description|
Reads in the header of the specified ARFF file and returns a corresponding table spec object.
Returns a row iterator which returns each row one-by-one from the table.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ARFFTable(URL arffFileLocation, DataTableSpec tSpec, String rowKeyPrefix)
arffFileLocation- valid URL which points to the ARFF file to read
tSpec- the structure of the table to create
rowKeyPrefix- row keys are constructed like rowKeyPrefix + lineNo
public DataTableSpec getDataTableSpec()
DataTableSpecobject of this table which gives information about the structure of this data table.
public RowIterator iterator()
public static DataTableSpec createDataTableSpecFromARFFfile(URL fileLoc, ExecutionMonitor exec) throws IOException, InvalidSettingsException, CanceledExecutionException
fileLoc- the location of the ARFF file to read
exec- to enable users to cancel this process
IOException- if the file location couldn't be opened
InvalidSettingsException- if the file contains an invalid format
CanceledExecutionException- if user canceled
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.