|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.table.AbstractExampleTable
com.rapidminer.example.table.DatabaseExampleTable
public class DatabaseExampleTable
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. Additionally, directly working on databases is highly experimental and
therefore usually not recommended.
| Method Summary | |
|---|---|
int |
addAttribute(Attribute attribute)
Adds the attribute to the list of attributes assigning it a free column index. |
static DatabaseExampleTable |
createDatabaseExampleTable(DatabaseHandler databaseHandler,
java.lang.String tableName)
|
protected void |
finalize()
|
DataRow |
getDataRow(int index)
Returns the data row with the desired row index. |
DataRowReader |
getDataRowReader()
Returns an Iterator for example data given as DataRow
objects. |
void |
removeAttribute(Attribute attribute)
Equivalent to calling removeAttribute(attribute.getTableIndex()). |
int |
size()
Returns the number of examples. |
| Methods inherited from class com.rapidminer.example.table.AbstractExampleTable |
|---|
addAttributes, createExampleSet, createExampleSet, createExampleSet, createExampleSet, createExampleSet, createExampleSet, findAttribute, getAttribute, getAttributeCount, getAttributes, getNumberOfAttributes, removeAttribute, toDataString, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static DatabaseExampleTable createDatabaseExampleTable(DatabaseHandler databaseHandler,
java.lang.String tableName)
throws java.sql.SQLException
java.sql.SQLExceptionpublic DataRowReader getDataRowReader()
ExampleTableDataRow
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).
public DataRow getDataRow(int index)
public int addAttribute(Attribute attribute)
AbstractExampleTable
addAttribute in interface ExampleTableaddAttribute in class AbstractExampleTablepublic void removeAttribute(Attribute attribute)
AbstractExampleTableremoveAttribute(attribute.getTableIndex()).
removeAttribute in interface ExampleTableremoveAttribute in class AbstractExampleTablepublic int size()
ExampleTable
protected void finalize()
finalize in class java.lang.Object
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||