org.knime.base.data.bitvector
Class BitVectorColumnCellFactory

java.lang.Object
  extended by org.knime.core.data.container.AbstractCellFactory
      extended by org.knime.core.data.container.SingleCellFactory
          extended by org.knime.base.data.bitvector.BitVectorCellFactory
              extended by org.knime.base.data.bitvector.BitVectorColumnCellFactory
All Implemented Interfaces:
CellFactory
Direct Known Subclasses:
BitString2BitVectorCellFactory, Hex2BitVectorCellFactory, IdString2BitVectorCellFactory

public abstract class BitVectorColumnCellFactory
extends BitVectorCellFactory

Author:
Fabian Dill, University of Konstanz

Constructor Summary
BitVectorColumnCellFactory(DataColumnSpec columnSpec, int columnIndex)
          Create new cell factory that provides one column given by newColSpec.
 
Method Summary
 int getColumnIndex()
           
protected  void printError(NodeLogger logger, String msg)
          Logs the provided message to the provided logger.
 
Methods inherited from class org.knime.base.data.bitvector.BitVectorCellFactory
getNrOfProcessedRows, getNumberOfNotSetBits, getNumberOfSetBits, incrementNrOfRows, wasSuccessful
 
Methods inherited from class org.knime.core.data.container.SingleCellFactory
getCell, getCells
 
Methods inherited from class org.knime.core.data.container.AbstractCellFactory
getColumnSpecs, setProgress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitVectorColumnCellFactory

public BitVectorColumnCellFactory(DataColumnSpec columnSpec,
                                  int columnIndex)
Create new cell factory that provides one column given by newColSpec.

Parameters:
columnSpec - the spec of the new column
columnIndex - index of the column to be replaced
Method Detail

getColumnIndex

public int getColumnIndex()
Returns:
index of the column to replace.

printError

protected void printError(NodeLogger logger,
                          String msg)
Logs the provided message to the provided logger. It suppresses messages after 20 messages have been printed.

Parameters:
logger - messages are send to this instance
msg - the message to print


Copyright, 2003 - 2010. 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.