|
||||||||||
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. |
void |
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.KnowsRowCountTable
public void ensureOpen()
BufferedDataTable.ensureOpen()
.
ensureOpen
in interface BufferedDataTable.KnowsRowCountTable
public BufferedDataTable[] getReferenceTables()
getReferenceTables
in interface BufferedDataTable.KnowsRowCountTable
null
.public int getRowCount()
getRowCount
in interface BufferedDataTable.KnowsRowCountTable
public CloseableRowIterator iterator()
iterator
in interface Iterable<DataRow>
iterator
in interface DataTable
iterator
in interface BufferedDataTable.KnowsRowCountTable
DataRow
public DataTableSpec getDataTableSpec()
DataTableSpec
object of this table which gives
information about the structure of this data table.
getDataTableSpec
in interface DataTable
public void putIntoTableRepository(HashMap<Integer,ContainerTable> rep)
putIntoTableRepository
in interface BufferedDataTable.KnowsRowCountTable
rep
- The workflow table repository.public void removeFromTableRepository(HashMap<Integer,ContainerTable> rep)
removeFromTableRepository
in interface BufferedDataTable.KnowsRowCountTable
rep
- The workflow table repository.public void saveToFile(File f, NodeSettingsWO s, ExecutionMonitor exec) throws IOException, CanceledExecutionException
saveToFile
in interface BufferedDataTable.KnowsRowCountTable
f
- 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 |