Class Appender

  • All Implemented Interfaces:
    java.io.Serializable, BaseStepExtender, Step

    @KFStep(name="Appender",
            category="Flow",
            toolTipText="Append multiple sets of instances",
            iconPath="weka/gui/knowledgeflow/icons/Appender.png")
    public class Appender
    extends BaseStep
    A bean that appends multiple incoming data connections into a single data set. The incoming connections can be either all instance connections or all batch-oriented connections (i.e. data set, training set and test set). Instance and batch connections can't be mixed. An amalgamated output is created that is a combination of all the incoming attributes. Missing values are used to fill columns that don't exist in a particular incoming data set. If all incoming connections are instance connections, then the outgoing connection must be an instance connection (and vice versa for incoming batch connections).
    Version:
    $Revision: $
    Author:
    Mark Hall (mhall{[at]}pentaho{[dot]}com)
    See Also:
    Serialized Form
    • Constructor Detail

      • Appender

        public Appender()
    • Method Detail

      • getIncomingConnectionTypes

        public java.util.List<java.lang.String> getIncomingConnectionTypes()
        Get the incoming connection types accepted by this step at this time
        Returns:
        a list of incoming connection types
      • getOutgoingConnectionTypes

        public java.util.List<java.lang.String> getOutgoingConnectionTypes()
        Get a list of outgoing connection types that this step can produce at this time
        Returns:
        a list of outgoing connection types
      • outputStructureForConnectionType

        public Instances outputStructureForConnectionType​(java.lang.String connectionName)
                                                   throws WekaException
        If possible, get the output structure for the named connection type as a header-only set of instances. Can return null if the specified connection type is not representable as Instances or cannot be determined at present.
        Specified by:
        outputStructureForConnectionType in interface Step
        Overrides:
        outputStructureForConnectionType in class BaseStep
        Parameters:
        connectionName - the name of the connection to get the output structure for
        Returns:
        the output structure or null if it can't be produced
        Throws:
        WekaException - if a problem occurs