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

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

final class JoinContainer
extends Object

A Container used to collect DataRows. The container has three categories for inner, left outer and right outer matches.

Author:
Heiko Hofer

Constructor Summary
JoinContainer(OutputDataRow.Settings settings)
          Create a new instance.
 
Method Summary
(package private)  void addLeftOuter(DataRow row, ExecutionContext exec)
          Add an outer match of the left table to this JoinContainer.
(package private)  void addMatch(DataRow row, ExecutionContext exec)
          Add an inner match to the JoinContainer.
(package private)  void addRightOuter(DataRow row, ExecutionContext exec)
          Add an outer match of the right table to this JoinContainer.
 void close()
          Close this container.
(package private)  BufferedDataTable getLeftOuter()
           
(package private)  BufferedDataTable getMatches()
           
(package private)  BufferedDataTable getRightOuter()
           
(package private)  int getRowCount()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JoinContainer

JoinContainer(OutputDataRow.Settings settings)
Create a new instance.

Parameters:
settings - The settings object of the OutputDataRow.
Method Detail

getRowCount

int getRowCount()
Returns:
the rowCount

addMatch

void addMatch(DataRow row,
              ExecutionContext exec)
Add an inner match to the JoinContainer.

Parameters:
row - The matching row.
exec - The Execution context.

addRightOuter

void addRightOuter(DataRow row,
                   ExecutionContext exec)
Add an outer match of the right table to this JoinContainer. This is a row of the right table appended by missing data cells which does not match a row of the left table.

Parameters:
row - The matching row.
exec - The execution context.

addLeftOuter

void addLeftOuter(DataRow row,
                  ExecutionContext exec)
Add an outer match of the left table to this JoinContainer. This is a row of the left table appended by missing data cells which does not match a row of the right table.

Parameters:
row - The matching row.
exec - The execution context.

getMatches

BufferedDataTable getMatches()
Returns:
The DataTable which holds the inner joins.

getRightOuter

BufferedDataTable getRightOuter()
Returns:
The DataTable which holds the right outer joins.

getLeftOuter

BufferedDataTable getLeftOuter()
Returns:
The DataTable which holds the left outer joins.

close

public void close()
Close this container.



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.