Package weka.knowledgeflow.steps
Class Saver
java.lang.Object
weka.knowledgeflow.steps.BaseStep
weka.knowledgeflow.steps.WekaAlgorithmWrapper
weka.knowledgeflow.steps.Saver
- All Implemented Interfaces:
Serializable
,BaseStepExtender
,Step
@KFStep(name="Saver",
category="DataSinks",
toolTipText="Weka saver wrapper",
iconPath="")
public class Saver
extends WekaAlgorithmWrapper
implements Serializable
Step that wraps weka.core.converters.Saver classes
- Version:
- $Revision: $
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the fully qualified name of a custom editor component (JComponent) to use for editing the properties of the step.Get a list of incoming connection types that this step can receive at this timeGet a list of outgoing connection types that this step can produce at this timeboolean
Get whether the relation name is the primary part of the filename.getSaver()
Get the saver instance that is wrapped by this step.Get the class of the wrapped algorithmvoid
processIncoming
(Data data) Processes incoming datavoid
setRelationNameForFilename
(boolean r) Set whether to use the relation name as the primary part of the filename.void
Set the saver instance that is wrapped by this step.void
setWrappedAlgorithm
(Object algo) Set the actual wrapped algorithm instancevoid
stepInit()
Initialize the stepMethods inherited from class weka.knowledgeflow.steps.WekaAlgorithmWrapper
getDefaultIconPath, getDefaultPackageLevelIconPath, getIconPath, getWrappedAlgorithm, globalInfo
Methods inherited from class weka.knowledgeflow.steps.BaseStep
environmentSubstitute, getDefaultSettings, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, isResourceIntensive, isStopRequested, outputStructureForConnectionType, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, setStepMustRunSingleThreaded, start, stepMustRunSingleThreaded, stop
-
Constructor Details
-
Saver
public Saver()
-
-
Method Details
-
getWrappedAlgorithmClass
Get the class of the wrapped algorithm- Specified by:
getWrappedAlgorithmClass
in classWekaAlgorithmWrapper
- Returns:
- the class of the wrapped algorithm
-
setWrappedAlgorithm
Set the actual wrapped algorithm instance- Overrides:
setWrappedAlgorithm
in classWekaAlgorithmWrapper
- Parameters:
algo
- the wrapped algorithm instance
-
getSaver
Get the saver instance that is wrapped by this step. Convenience method that delegates togetWrappedAlgorithm()
- Returns:
- the saver instance that is wrapped by this step
-
setSaver
Set the saver instance that is wrapped by this step. Convenience method that delegates tosetWrappedAlgorithm()
.- Parameters:
saver
- the saver instance that is wrapped by this step
-
getRelationNameForFilename
public boolean getRelationNameForFilename()Get whether the relation name is the primary part of the filename.- Returns:
- true if the relation name is part of the filename.
-
setRelationNameForFilename
public void setRelationNameForFilename(boolean r) Set whether to use the relation name as the primary part of the filename. If false, then the prefix becomes the filename.- Parameters:
r
- true if the relation name is to be part of the filename.
-
stepInit
Initialize the step- Specified by:
stepInit
in interfaceBaseStepExtender
- Specified by:
stepInit
in interfaceStep
- Throws:
WekaException
- if a problem occurs during initialization
-
processIncoming
Processes incoming data- Specified by:
processIncoming
in interfaceBaseStepExtender
- Specified by:
processIncoming
in interfaceStep
- Overrides:
processIncoming
in classBaseStep
- Parameters:
data
- the data process- Throws:
WekaException
- if a problem occurs
-
getIncomingConnectionTypes
Get a list of incoming connection types that this step can receive at this time- Specified by:
getIncomingConnectionTypes
in interfaceBaseStepExtender
- Specified by:
getIncomingConnectionTypes
in interfaceStep
- Returns:
- a list of incoming connection types
-
getOutgoingConnectionTypes
Get a list of outgoing connection types that this step can produce at this time- Specified by:
getOutgoingConnectionTypes
in interfaceBaseStepExtender
- Specified by:
getOutgoingConnectionTypes
in interfaceStep
- Returns:
- a list of outgoing connection types
-
getCustomEditorForStep
Return the fully qualified name of a custom editor component (JComponent) to use for editing the properties of the step. This method can return null, in which case the system will dynamically generate an editor using the GenericObjectEditor- Specified by:
getCustomEditorForStep
in interfaceStep
- Overrides:
getCustomEditorForStep
in classBaseStep
- Returns:
- the fully qualified name of a step editor component
-