|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.knime.core.data.container.WrappedTable
public final class WrappedTable
Special table implementation that simply wraps a given
BufferedDataTable. This class is used by the framework and should not
be of public interest.
| Constructor Summary | |
|---|---|
WrappedTable(BufferedDataTable table)
Creates new table wrapping the argument. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears any allocated temporary files. |
void |
ensureOpen()
Implementation of BufferedDataTable.ensureOpen(). |
DataTableSpec |
getDataTableSpec()
Returns the DataTableSpec object of this table which gives
information about the structure of this data table. |
BufferedDataTable[] |
getReferenceTables()
Reference to the underlying tables, if any. |
int |
getRowCount()
Row count of the table. |
CloseableRowIterator |
iterator()
Overridden to narrow return type to closeable iterator. |
static WrappedTable |
load(NodeSettingsRO s,
Map<Integer,BufferedDataTable> tblRep)
Restore table, reverse operation to save. |
void |
putIntoTableRepository(HashMap<Integer,ContainerTable> rep)
Put this table into the global table repository. |
boolean |
removeFromTableRepository(HashMap<Integer,ContainerTable> rep)
Remove this table from global table repository. |
void |
saveToFile(File f,
NodeSettingsWO s,
ExecutionMonitor exec)
Save the table to a file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrappedTable(BufferedDataTable table)
table - Table to wrap
NullPointerException - If argument is null.| Method Detail |
|---|
public void clear()
clear in interface BufferedDataTable.KnowsRowCountTablepublic void ensureOpen()
BufferedDataTable.ensureOpen().
ensureOpen in interface BufferedDataTable.KnowsRowCountTablepublic BufferedDataTable[] getReferenceTables()
getReferenceTables in interface BufferedDataTable.KnowsRowCountTablenull.public int getRowCount()
getRowCount in interface BufferedDataTable.KnowsRowCountTablepublic CloseableRowIterator iterator()
iterator in interface Iterable<DataRow>iterator in interface DataTableiterator in interface BufferedDataTable.KnowsRowCountTableDataRowpublic DataTableSpec getDataTableSpec()
DataTableSpec object of this table which gives
information about the structure of this data table.
getDataTableSpec in interface DataTablepublic void putIntoTableRepository(HashMap<Integer,ContainerTable> rep)
putIntoTableRepository in interface BufferedDataTable.KnowsRowCountTablerep - The workflow table repository.public boolean removeFromTableRepository(HashMap<Integer,ContainerTable> rep)
removeFromTableRepository in interface BufferedDataTable.KnowsRowCountTablerep - The workflow table repository.
public void saveToFile(File f,
NodeSettingsWO s,
ExecutionMonitor exec)
throws IOException,
CanceledExecutionException
saveToFile in interface BufferedDataTable.KnowsRowCountTablef - To write to.s - To add meta information to.exec - For progress/cancel.
IOException - If writing fails.
CanceledExecutionException - If canceled.
public static WrappedTable load(NodeSettingsRO s,
Map<Integer,BufferedDataTable> tblRep)
throws InvalidSettingsException
save.
s - To load fromtblRep - Global table loader map.
InvalidSettingsException - If settings are invalid.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||