com.rapidminer.example.table
Class LimitCachedDatabaseExampleTable
java.lang.Object
com.rapidminer.example.table.AbstractExampleTable
com.rapidminer.example.table.LimitCachedDatabaseExampleTable
- All Implemented Interfaces:
- ExampleTable, java.io.Serializable
public class LimitCachedDatabaseExampleTable
- extends AbstractExampleTable
This class is another data supplier for example sets. For performance reasons
one should use a MemoryExampleTable
if the data is small enough for
the main memory.
- Author:
- Ingo Mierswa, Simon Fischer
- See Also:
- Serialized Form
Methods inherited from class com.rapidminer.example.table.AbstractExampleTable |
addAttribute, addAttributes, createExampleSet, createExampleSet, createExampleSet, createExampleSet, createExampleSet, createExampleSet, findAttribute, getAttribute, getAttributeCount, getAttributes, getNumberOfAttributes, removeAttribute, removeAttribute, toDataString, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LimitCachedDatabaseExampleTable
public LimitCachedDatabaseExampleTable(DatabaseHandler databaseHandler,
java.lang.String tableName,
int dataManagementType)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getDataRow
public DataRow getDataRow(int index)
- Description copied from interface:
ExampleTable
- Returns the i-th data row. Calling methods cannot rely on the efficiency
of this method. Memory based example tables should return the data row in
O(1).
getDataRowReader
public DataRowReader getDataRowReader()
- Description copied from interface:
ExampleTable
- Returns an Iterator for example data given as
DataRow
objects. This should be used in all cases where iteration is desired.
Since ExampleTable.getDataRow(int)
does not ensure to work in an efficient
way the usage of this method is preferred (instead using for-loops).
size
public int size()
- Description copied from interface:
ExampleTable
- Returns the number of examples.
Copyright © 2001-2009 by Rapid-I