org.knime.base.node.preproc.joiner
Class DataHiliteOutputContainer

java.lang.Object
  extended by org.knime.base.node.preproc.joiner.DataHiliteOutputContainer

 class DataHiliteOutputContainer
extends Object

This is a facade for a DataContainer which is used to create the final joined table.

Author:
Heiko Hofer

Nested Class Summary
(package private) static class DataHiliteOutputContainer.Missing
          An InputDataRow with solely missing data cells, needed for left and right outer join.
 
Constructor Summary
DataHiliteOutputContainer(DataTableSpec spec, boolean enableHiLite, BufferedDataTable leftTable, int[] leftSurvivors, int[] rightSurvivors, JoinedRowKeyFactory rowKeyFactory)
           
 
Method Summary
(package private)  void addTableAndFilterDuplicates(SortedTable table, ExecutionContext exec)
          Adds the rows of the given table to the container.
 void close()
          Close container.
(package private)  HashMap<RowKey,Set<RowKey>> getLeftRowKeyMap()
           
(package private)  HashMap<RowKey,Set<RowKey>> getRightRowKeyMap()
           
(package private)  BufferedDataTable getTable()
          Return the table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataHiliteOutputContainer

DataHiliteOutputContainer(DataTableSpec spec,
                          boolean enableHiLite,
                          BufferedDataTable leftTable,
                          int[] leftSurvivors,
                          int[] rightSurvivors,
                          JoinedRowKeyFactory rowKeyFactory)
Parameters:
spec - The spec of the data container used for storing all added tables.
enableHiLite - If HiLite is enabled.
leftTable - The left input table.
leftSurvivors - The survivors of the left input table.
rightSurvivors - The survivors of the right input table.
rowKeyFactory - Used for creating the row ids of the joined rows.
Method Detail

getLeftRowKeyMap

HashMap<RowKey,Set<RowKey>> getLeftRowKeyMap()
Returns:
the rowKeyMap

getRightRowKeyMap

HashMap<RowKey,Set<RowKey>> getRightRowKeyMap()
Returns:
the rowKeyMap

close

public void close()
Close container.


addTableAndFilterDuplicates

void addTableAndFilterDuplicates(SortedTable table,
                                 ExecutionContext exec)
Adds the rows of the given table to the container. The rows are supposed to be created with the factory methods in OutputDataRow.

Parameters:
table - The table with the rows that should be added.
exec - The execution context

getTable

BufferedDataTable getTable()
Return the table.

Returns:
the table


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.