|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataTable
A data table that contains Object arrays that record process results, data, etc.
Instances of this class are automatically created by
Process.getDataTables() and are used mainly by the
ProcessLogOperator. On the other hand,
also ExampleSets can also be used as an data table object.
| Method Summary | |
|---|---|
void |
add(DataTableRow row)
Adds the given DataTableRow to the table. |
void |
addDataTableListener(DataTableListener dataTableListener)
Adds a table listener listening for data changes. |
boolean |
containsMissingValues()
Returns true if this data table contains missing values. |
int |
getColumnIndex(java.lang.String name)
Returns the column index of the column with the given name. |
java.lang.String |
getColumnName(int i)
Returns the name of the i-th column. |
java.lang.String[] |
getColumnNames()
Returns an array of all column names. |
double |
getColumnWeight(int i)
Returns the weight of the column or Double.NaN if no weight is available. |
java.lang.String |
getName()
Returns the name of this data table. |
int |
getNumberOfColumns()
Returns the total number of columns. |
int |
getNumberOfRows()
Returns the total number of rows. |
int |
getNumberOfSpecialColumns()
Returns the total number of special columns. |
int |
getNumberOfValues(int column)
Returns the number of different values for the i-th column. |
DataTableRow |
getRow(int index)
Returns the data table row with the given index. |
int |
getSelectionCount()
|
java.lang.String |
getValueAsString(DataTableRow row,
int column)
Must deliver the proper value as string, i.e. the mapped value for nominal columns. |
boolean |
isDate(int index)
Indicates if the column with the given index is nominal. |
boolean |
isDateTime(int index)
Indicates if the column with the given index is nominal. |
boolean |
isDeselected(java.lang.String id)
|
boolean |
isNominal(int index)
Indicates if the column with the given index is nominal. |
boolean |
isNumerical(int index)
Indicates if the column with the given index is nominal. |
boolean |
isSpecial(int column)
Returns true if this column is a special column which might usually not be used for some plotters, for example weights or labels. |
boolean |
isSupportingColumnWeights()
Returns true if this data table is supporting column weights. |
boolean |
isTime(int index)
Indicates if the column with the given index is nominal. |
java.util.Iterator<DataTableRow> |
iterator()
Returns an iterator over all DataTableRows. |
java.lang.String |
mapIndex(int column,
int index)
If a column is nominal, the index value must be mapped to the nominal value by this method. |
int |
mapString(int column,
java.lang.String value)
If a column is nominal, the nominal value must be mapped to a (new) index by this method. |
void |
removeDataTableListener(DataTableListener dataTableListener)
Removes the given listener from the list of data change listeners. |
DataTable |
sample(int newSize)
Performs a sampling of this data table. |
void |
setName(java.lang.String name)
Sets the name of the data table. |
void |
setSelection(AbstractChartPanel.Selection selection)
|
void |
write(java.io.PrintWriter out)
Writes the table into the given writer. |
| Methods inherited from interface com.rapidminer.report.Tableable |
|---|
finishReporting, getCell, getColumnNumber, getRowNumber, isFirstColumnHeader, isFirstLineHeader, prepareReporting |
| Method Detail |
|---|
boolean isNominal(int index)
boolean isTime(int index)
boolean isDate(int index)
boolean isDateTime(int index)
boolean isNumerical(int index)
java.lang.String mapIndex(int column,
int index)
NullPointerException.
int mapString(int column,
java.lang.String value)
NullPointerException.
java.lang.String getColumnName(int i)
getColumnName in interface Tableableint getColumnIndex(java.lang.String name)
double getColumnWeight(int i)
boolean isSupportingColumnWeights()
int getNumberOfColumns()
int getNumberOfSpecialColumns()
isSpecial(int) should be used.
boolean isSpecial(int column)
java.lang.String[] getColumnNames()
java.lang.String getName()
void setName(java.lang.String name)
void add(DataTableRow row)
DataTableRow to the table.
java.util.Iterator<DataTableRow> iterator()
DataTableRows.
iterator in interface java.lang.Iterable<DataTableRow>DataTableRow getRow(int index)
int getNumberOfRows()
int getNumberOfValues(int column)
java.lang.String getValueAsString(DataTableRow row,
int column)
void addDataTableListener(DataTableListener dataTableListener)
void removeDataTableListener(DataTableListener dataTableListener)
void write(java.io.PrintWriter out)
throws java.io.IOException
java.io.IOExceptionDataTable sample(int newSize)
boolean containsMissingValues()
boolean isDeselected(java.lang.String id)
void setSelection(AbstractChartPanel.Selection selection)
int getSelectionCount()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||