org.knime.base.node.preproc.pmml.stringtonumber
Class PMMLStringConversionTranslator

java.lang.Object
  extended by org.knime.base.node.preproc.pmml.stringtonumber.PMMLStringConversionTranslator
All Implemented Interfaces:
PMMLPreprocTranslator

public class PMMLStringConversionTranslator
extends Object
implements PMMLPreprocTranslator

Author:
Dominik Morent, KNIME.com, Zurich, Switzerland

Constructor Summary
PMMLStringConversionTranslator(DerivedFieldMapper derivedFieldMapper)
           
PMMLStringConversionTranslator(List<String> includeList, DataType parseType, DerivedFieldMapper derivedFieldMapper)
           
 
Method Summary
 org.dmg.pmml40.LocalTransformationsDocument.LocalTransformations exportToLocalTrans()
          Exports the translators state to a new LocalTransformations element.
 org.dmg.pmml40.TransformationDictionaryDocument.TransformationDictionary exportToTransDict()
          Exports the translators state to a new TransformationDictionary element.
 List<String> getIncludeCols()
           
 DataType getParseType()
           
 List<Integer> initializeFrom(org.dmg.pmml40.DerivedFieldDocument.DerivedField[] derivedFields)
          Initializes the translator based on a derived field array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PMMLStringConversionTranslator

public PMMLStringConversionTranslator(DerivedFieldMapper derivedFieldMapper)
Parameters:
derivedFieldMapper - the derived field mapper

PMMLStringConversionTranslator

public PMMLStringConversionTranslator(List<String> includeList,
                                      DataType parseType,
                                      DerivedFieldMapper derivedFieldMapper)
Parameters:
includeList - the names of the included colums
parseType - the resulting type
derivedFieldMapper - the derived field mapper
Method Detail

initializeFrom

public List<Integer> initializeFrom(org.dmg.pmml40.DerivedFieldDocument.DerivedField[] derivedFields)
Initializes the translator based on a derived field array.

Specified by:
initializeFrom in interface PMMLPreprocTranslator
Parameters:
derivedFields - the derived fields to initialize from
Returns:
a list with the indices of all derived field entries that could be consumed

exportToTransDict

public org.dmg.pmml40.TransformationDictionaryDocument.TransformationDictionary exportToTransDict()
Exports the translators state to a new TransformationDictionary element.

Specified by:
exportToTransDict in interface PMMLPreprocTranslator
Returns:
the transformation dictionary containing the preprocessing elements

exportToLocalTrans

public org.dmg.pmml40.LocalTransformationsDocument.LocalTransformations exportToLocalTrans()
Exports the translators state to a new LocalTransformations element.

Specified by:
exportToLocalTrans in interface PMMLPreprocTranslator
Returns:
the local transformations containing the preprocessing elements

getParseType

public DataType getParseType()
Returns:
the parseType

getIncludeCols

public List<String> getIncludeCols()
Returns:
the includeCols


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.