Package weka.knowledgeflow.steps
Class Appender
java.lang.Object
weka.knowledgeflow.steps.BaseStep
weka.knowledgeflow.steps.Appender
- All Implemented Interfaces:
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:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the incoming connection types accepted by this step at this timeGet a list of outgoing connection types that this step can produce at this timeoutputStructureForConnectionType
(String connectionName) If possible, get the output structure for the named connection type as a header-only set of instances.void
processIncoming
(Data data) Process an incoming data payload (if the step accepts incoming connections)void
stepInit()
Initialize the stepMethods inherited from class weka.knowledgeflow.steps.BaseStep
environmentSubstitute, getCustomEditorForStep, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
-
Constructor Details
-
Appender
public Appender()
-
-
Method Details
-
stepInit
Initialize the step- Throws:
WekaException
- if a problem occurs
-
getIncomingConnectionTypes
Get the incoming connection types accepted by this step at this time- Returns:
- a list of incoming connection types
-
getOutgoingConnectionTypes
Get a list of outgoing connection types that this step can produce at this time- Returns:
- a list of outgoing connection types
-
processIncoming
Process an incoming data payload (if the step accepts incoming connections)- Specified by:
processIncoming
in interfaceBaseStepExtender
- Specified by:
processIncoming
in interfaceStep
- Overrides:
processIncoming
in classBaseStep
- Parameters:
data
- the data to process- Throws:
WekaException
- if a problem occurs
-
outputStructureForConnectionType
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 interfaceStep
- Overrides:
outputStructureForConnectionType
in classBaseStep
- 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
-