public class ArffDataSet extends FileDataset
ArffDataset implementation (Weka dataset).
AbstractDataset.Instance
IDataset.IInstance
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
bufferInstance
Buffer Instance
|
protected java.lang.String |
commentedValue
Symbol which represents commentted values
|
protected java.lang.String |
missedValue
Symbol which represents missed values
|
protected java.lang.String |
separationValue
Symbol which represents the separation between values
|
fileName, fileReader
cursorInstance, cursorPosition, metadata, name
Constructor and Description |
---|
ArffDataSet()
Constructor without arguments
|
ArffDataSet(java.lang.String fileName,
java.lang.String... specificationFile)
Constructor with the filename and the specification file
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close dataset
|
boolean |
next()
Return the next instance
|
void |
open()
Open dataset
|
AbstractDataset.Instance |
read()
Returns cursor instance
|
void |
reset()
Reset dataset
|
configure, getFileName, move, setFileName
getCursorPosition, getMetadata, getName, numberOfInstances, read, read, read, setName
protected java.lang.String missedValue
protected java.lang.String commentedValue
protected java.lang.String separationValue
protected java.lang.String bufferInstance
public ArffDataSet(java.lang.String fileName, java.lang.String... specificationFile)
Constructor with the filename and the specification file
fileName
- Name of the dataset filespecificationFile
- Specification filepublic ArffDataSet()
Constructor without arguments
public void open()
Open dataset
open
in interface IDataset
open
in class FileDataset
public void reset()
Reset dataset
reset
in interface IDataset
reset
in class FileDataset
public boolean next() throws DatasetException
Return the next instance
next
in interface IDataset
next
in class FileDataset
DatasetException
- if a source access error occurspublic AbstractDataset.Instance read() throws DatasetException
Returns cursor instance
read
in interface IDataset
read
in class FileDataset
DatasetException
- if a source access error occurspublic void close() throws DatasetException
Close dataset
close
in interface IDataset
close
in class FileDataset
DatasetException
- If dataset can't be closed