@KFStep(name="TextSaver", category="DataSinks", toolTipText="Save text output to a file", iconPath="weka/gui/knowledgeflow/icons/DefaultText.gif") public class TextSaver extends BaseStep
| Modifier and Type | Class and Description |
|---|---|
static class |
TextSaver.TextSaverDefaults |
| Constructor and Description |
|---|
TextSaver() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAppend() |
Defaults |
getDefaultSettings()
Get default settings for the step (if any).
|
File |
getFile() |
List<String> |
getIncomingConnectionTypes()
Get a list of incoming connection types that this step can accept.
|
List<String> |
getOutgoingConnectionTypes()
Get a list of outgoing connection types that this step can produce.
|
boolean |
getWriteTitleString() |
void |
processIncoming(Data data)
Process an incoming data payload (if the step accepts incoming connections)
|
void |
setAppend(boolean append) |
void |
setFile(File f) |
void |
setWriteTitleString(boolean w) |
void |
stepInit()
Initialize the step.
|
environmentSubstitute, getCustomEditorForStep, getInteractiveViewers, getInteractiveViewersImpls, getName, getStepManager, globalInfo, isResourceIntensive, isStopRequested, outputStructureForConnectionType, setName, setStepIsResourceIntensive, setStepManager, start, stop@OptionMetadata(displayName="File to save to", description="The file to save textual results to", displayOrder=1) @FilePropertyMetadata(fileChooserDialogType=0, directoriesOnly=false) public void setFile(File f)
public File getFile()
@OptionMetadata(displayName="Append to file", description="Append to file, rather than re-create for each incoming texual result", displayOrder=2) public void setAppend(boolean append)
public boolean getAppend()
@OptionMetadata(displayName="Write title string", description="Whether to output the title string associated with each textual result", displayOrder=3) public void setWriteTitleString(boolean w)
public boolean getWriteTitleString()
public void stepInit()
throws WekaException
StepWekaException - if a problem occurs during initializationpublic List<String> getIncomingConnectionTypes()
Steppublic List<String> getOutgoingConnectionTypes()
Steppublic void processIncoming(Data data) throws WekaException
BaseStepprocessIncoming in interface BaseStepExtenderprocessIncoming in interface StepprocessIncoming in class BaseStepdata - the payload to processWekaException - if a problem occurspublic Defaults getDefaultSettings()
BaseStepgetDefaultSettings in interface StepgetDefaultSettings in class BaseStepCopyright © 2016 University of Waikato, Hamilton, NZ. All Rights Reserved.