|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.data.container.JoinedTable
public final class JoinedTable
Class that realizes a join table of two BufferedDataTable
arguments.
This class is not intended to be used in any node implementation, it is public only because some KNIME framework classes access it.
This class is used to represent the BufferedDataTable
that is
returned by the ExecutionContext
s
ExecutionContext.createJoinedTable(
BufferedDataTable, BufferedDataTable, ExecutionMonitor)
method.
Method Summary | |
---|---|
void |
clear()
Does nothing. |
static JoinedTable |
create(BufferedDataTable left,
BufferedDataTable right,
ExecutionMonitor prog)
Creates new join table, does the sanity checks. |
void |
ensureOpen()
Internal use. |
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 JoinedTable |
load(NodeSettingsRO s,
DataTableSpec spec,
Map<Integer,BufferedDataTable> tblRep)
Method being called when the workflow is restored and the table shall recreated. |
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 settings,
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 |
Method Detail |
---|
public DataTableSpec getDataTableSpec()
DataTableSpec
object of this table which gives
information about the structure of this data table.
getDataTableSpec
in interface DataTable
public CloseableRowIterator iterator()
iterator
in interface Iterable<DataRow>
iterator
in interface DataTable
iterator
in interface BufferedDataTable.KnowsRowCountTable
DataRow
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 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 settings, ExecutionMonitor exec) throws IOException, CanceledExecutionException
saveToFile
in interface BufferedDataTable.KnowsRowCountTable
f
- To write to.settings
- To add meta information to.exec
- For progress/cancel.
IOException
- If writing fails.
CanceledExecutionException
- If canceled.public static JoinedTable load(NodeSettingsRO s, DataTableSpec spec, Map<Integer,BufferedDataTable> tblRep) throws InvalidSettingsException
s
- The settings object, contains tables ids.spec
- The final spec.tblRep
- The table repository
InvalidSettingsException
- If the settings can't be read.public static JoinedTable create(BufferedDataTable left, BufferedDataTable right, ExecutionMonitor prog) throws CanceledExecutionException
ExecutionContext.createJoinedTable(
BufferedDataTable, BufferedDataTable, ExecutionMonitor)
method.
left
- The left table.right
- The right table.prog
- For progress/cancel.
CanceledExecutionException
- When canceled.
IllegalArgumentException
- If row keys don't match or there are
duplicate columns.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |