com.rapidminer.operator.ports.metadata
Class PassThroughRule

java.lang.Object
  extended by com.rapidminer.operator.ports.metadata.PassThroughRule
All Implemented Interfaces:
MDTransformationRule
Direct Known Subclasses:
AttributeAddingExampleSetPassThroughRule, ExampleSetPassThroughRule, ModelApplicationRule

public class PassThroughRule
extends java.lang.Object
implements MDTransformationRule

Assigns meta data received from an input port to an output port. Useful e.g. for preprocessing operators. If meta data changes dynamically, can be modified by overriding modifyMetaData(MetaData).

Author:
Simon Fischer

Constructor Summary
PassThroughRule(InputPort inputPort, OutputPort outputPort, boolean mandatory)
           
 
Method Summary
 InputPort getInputPort()
           
 OutputPort getOutputPort()
           
 boolean isOptional()
           
 MetaData modifyMetaData(MetaData unmodifiedMetaData)
          Modifies the received meta data before it is passed to the output.
 void transformMD()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PassThroughRule

public PassThroughRule(InputPort inputPort,
                       OutputPort outputPort,
                       boolean mandatory)
Method Detail

transformMD

public void transformMD()
Specified by:
transformMD in interface MDTransformationRule

modifyMetaData

public MetaData modifyMetaData(MetaData unmodifiedMetaData)
Modifies the received meta data before it is passed to the output. Can be used if the transformation depends on parameters etc. The default implementation just returns the original. Subclasses may safely modify the meta data, since a copy is used for this method.


getOutputPort

public OutputPort getOutputPort()

getInputPort

public InputPort getInputPort()

isOptional

public boolean isOptional()


Copyright © 2001-2009 by Rapid-I