|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.rapidminer.example.table.DataRow
public abstract class DataRow
This interface defines methods for all entries of ExampleTable implementations. It provides a set and get method for the data. Subclasses may use a double array, a sparse representation, a file or a database.
| Constructor Summary | |
|---|---|
DataRow()
|
|
| Method Summary | |
|---|---|
protected abstract void |
ensureNumberOfColumns(int numberOfColumns)
Ensures that neither get(i) nor put(i,v)
throw a runtime exception for all 0 <= i <= numberOfColumns. |
double |
get(Attribute attribute)
Returns the value stored at the given Attribute's index. |
protected abstract double |
get(int index,
double defaultValue)
Returns the value for the given index. |
void |
set(Attribute attribute,
double value)
Sets the value of the Attribute to value. |
protected abstract void |
set(int index,
double value,
double defaultValue)
Sets the given data for the given index. |
abstract java.lang.String |
toString()
Returns a string representation for this data row. |
abstract void |
trim()
Trims the number of columns to the actually needed number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DataRow()
| Method Detail |
|---|
protected abstract double get(int index,
double defaultValue)
protected abstract void set(int index,
double value,
double defaultValue)
protected abstract void ensureNumberOfColumns(int numberOfColumns)
get(i) nor put(i,v)
throw a runtime exception for all 0 <= i <= numberOfColumns.
public abstract void trim()
public abstract java.lang.String toString()
toString in class java.lang.Objectpublic double get(Attribute attribute)
Attribute's index.
Returns Double.NaN if the given attribute is null.
public void set(Attribute attribute,
double value)
Attribute to value.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||