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

java.lang.Object
  extended by org.knime.base.node.preproc.joiner.UseSingleRowKeyFactory
All Implemented Interfaces:
JoinedRowKeyFactory

public class UseSingleRowKeyFactory
extends Object
implements JoinedRowKeyFactory

This implementation uses one of the given row keys as the joined row key. It uses the one which is not null or the left key if both are not null.

Author:
Heiko Hofer

Constructor Summary
UseSingleRowKeyFactory()
           
 
Method Summary
 RowKey createJoinedKey(RowKey leftKey, RowKey rightKey)
          Creates a row key of the joined row.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UseSingleRowKeyFactory

public UseSingleRowKeyFactory()
Method Detail

createJoinedKey

public RowKey createJoinedKey(RowKey leftKey,
                              RowKey rightKey)
Creates a row key of the joined row.

Specified by:
createJoinedKey in interface JoinedRowKeyFactory
Parameters:
leftKey - the row key of the left row or null if missing
rightKey - the row key of the right row or null if missing
Returns:
the row key of the joined row


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.