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

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

 class ConcatenateJoinedRowKeyFactory
extends Object
implements JoinedRowKeyFactory

This implementation composes the joined row key by concatenating the left and the right row key with the given separator in the middle.

Author:
Heiko Hofer

Constructor Summary
ConcatenateJoinedRowKeyFactory(String separator)
           
 
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

ConcatenateJoinedRowKeyFactory

ConcatenateJoinedRowKeyFactory(String separator)
Parameters:
separator - The separator put in the middle of the joined row key.
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.