@Step(id="WekaForecasting",
image="WEKAF.svg",
name="Weka Forecasting",
description="This step makes time series forecasts from a pre-built Weka forecasting model",
categoryDescription="Data Mining")
public class WekaForecastingMeta
extends org.pentaho.di.trans.step.BaseStepMeta
implements org.pentaho.di.trans.step.StepMetaInterface
Constructor and Description |
---|
WekaForecastingMeta()
Creates a new
WekaForecastingMeta instance. |
Modifier and Type | Method and Description |
---|---|
void |
check(List<org.pentaho.di.core.CheckResultInterface> remarks,
org.pentaho.di.trans.TransMeta transmeta,
org.pentaho.di.trans.step.StepMeta stepMeta,
org.pentaho.di.core.row.RowMetaInterface prev,
String[] input,
String[] output,
org.pentaho.di.core.row.RowMetaInterface info)
Check the settings of this step and put findings in a remarks list.
|
Object |
clone()
Clone this step's meta data
|
boolean |
equals(Object obj)
Check for equality
|
String |
getArtificialTimeStartOffset()
Get the offset, from the value associated with the last training instance,
for the artificial time stamp.
|
String |
getDialogClassName() |
void |
getFields(org.pentaho.di.core.row.RowMetaInterface row,
String origin,
org.pentaho.di.core.row.RowMetaInterface[] info,
org.pentaho.di.trans.step.StepMeta nextStep,
org.pentaho.di.core.variables.VariableSpace space)
Generates row meta data to represent the fields output by this step
|
int[] |
getMappingIndexes()
Get the mapping from attributes to incoming Kettle fields
|
WekaForecastingModel |
getModel()
Get the forecasting model
|
String |
getNumStepsToForecast()
Get the number of steps to forecast into the future
|
boolean |
getRebuildForecaster()
Gets whether the forecaster is to be rebuilt/re-estimated on the the
incoming data stream.
|
String |
getSavedForecasterFileName()
Get the name of the file to save the forecaster out to.
|
String |
getSerializedModelFileName()
Get the filename of the serialized Weka model to load/import from
|
org.pentaho.di.trans.step.StepInterface |
getStep(org.pentaho.di.trans.step.StepMeta stepMeta,
org.pentaho.di.trans.step.StepDataInterface stepDataInterface,
int cnr,
org.pentaho.di.trans.TransMeta tr,
org.pentaho.di.trans.Trans trans)
Get the executing step, needed by Trans to launch a step.
|
org.pentaho.di.trans.step.StepDataInterface |
getStepData()
Get a new instance of the appropriate data class.
|
String |
getXML()
Return the XML describing this (configured) step
|
int |
hashCode()
Hash code method
|
void |
loadXML(Node stepnode,
List<org.pentaho.di.core.database.DatabaseMeta> databases,
Map<String,org.pentaho.di.core.Counter> counters)
Loads the meta data for this (configured) step from XML.
|
void |
mapIncomingRowMetaData(weka.core.Instances header,
org.pentaho.di.core.row.RowMetaInterface inputRowMeta)
Finds a mapping between the attributes that a forecasting model model has
seen during training and the incoming row format.
|
void |
readRep(org.pentaho.di.repository.Repository rep,
org.pentaho.di.repository.ObjectId id_step,
List<org.pentaho.di.core.database.DatabaseMeta> databases,
Map<String,org.pentaho.di.core.Counter> counters)
Read this step's configuration from a repository
|
void |
saveRep(org.pentaho.di.repository.Repository rep,
org.pentaho.di.repository.ObjectId id_transformation,
org.pentaho.di.repository.ObjectId id_step)
Save this step's meta data to a repository
|
void |
setArtificialTimeStartOffset(String art)
Set the offset, from the value associated with the last training instance,
for the artificial time stamp.
|
void |
setDefault() |
void |
setModel(WekaForecastingModel model)
Set the forecasting model
|
void |
setNumStepsToForecast(String numSteps)
Set the number of steps to forecast into the future
|
void |
setRebuildForecaster(boolean rebuild)
Set whether to rebuild the forecaster on the incoming data stream.
|
void |
setSavedForecasterFileName(String name)
Set the name of the file to save the forecaster out to or null not to save
the forecaster.
|
void |
setSerializedModelFileName(String mfile)
Set the file name of the serialized Weka model to load/import from
|
analyseImpact, analyseImpact, cancelQueries, check, check, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, findAttribute, findParent, getActiveReferencedObjectDescription, getDescription, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectId, getObjectRevision, getObjectType, getOptionalStreams, getParent, getParentStepMeta, getReferencedObjectDescriptions, getRepCode, getRepositoryDirectory, getRequiredFields, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepInjectionMetadataEntries, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getTooltip, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXmlCode, handleStreamSelection, hasChanged, hasRepositoryReferences, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, loadReferencedObject, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, readRep, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setChanged, setParentStepMeta, supportsErrorHandling
getClass, notify, notifyAll, toString, wait, wait, wait
analyseImpact, analyseImpact, cancelQueries, check, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, exportResources, extractStepMetadataEntries, getActiveReferencedObjectDescription, getFields, getOptionalStreams, getParentStepMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, handleStreamSelection, hasChanged, hasRepositoryReferences, isReferencedObjectEnabled, loadReferencedObject, loadXML, lookupRepositoryReferences, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setParentStepMeta, supportsErrorHandling
public static final String XML_TAG
public WekaForecastingMeta()
WekaForecastingMeta
instance.public void setRebuildForecaster(boolean rebuild)
rebuild
- true if the forecaster is to be rebuilt.public boolean getRebuildForecaster()
public void setSavedForecasterFileName(String name)
name
- the name of the file to save the rebuilt forecaster to.public String getSavedForecasterFileName()
public void setNumStepsToForecast(String numSteps)
numSteps
- the number of steps to forecastpublic String getNumStepsToForecast()
public void setArtificialTimeStartOffset(String art)
art
- the offset from the last artificial time value in the training
data for which the forecast is requested.public String getArtificialTimeStartOffset()
public void setSerializedModelFileName(String mfile)
mfile
- the file namepublic String getSerializedModelFileName()
public void setModel(WekaForecastingModel model)
model
- a WekaForecastingModel
public WekaForecastingModel getModel()
TSForecaster
public void mapIncomingRowMetaData(weka.core.Instances header, org.pentaho.di.core.row.RowMetaInterface inputRowMeta)
header
- the Instances headerinputRowMeta
- the meta data for the incoming rowspublic int[] getMappingIndexes()
public String getXML()
getXML
in interface org.pentaho.di.trans.step.StepMetaInterface
getXML
in class org.pentaho.di.trans.step.BaseStepMeta
String
containing the XMLpublic boolean equals(Object obj)
public int hashCode()
public Object clone()
clone
in interface org.pentaho.di.trans.step.StepMetaInterface
clone
in class org.pentaho.di.trans.step.BaseStepMeta
public void setDefault()
setDefault
in interface org.pentaho.di.trans.step.StepMetaInterface
public void loadXML(Node stepnode, List<org.pentaho.di.core.database.DatabaseMeta> databases, Map<String,org.pentaho.di.core.Counter> counters) throws org.pentaho.di.core.exception.KettleXMLException
loadXML
in interface org.pentaho.di.trans.step.StepMetaInterface
loadXML
in class org.pentaho.di.trans.step.BaseStepMeta
stepnode
- the step to loadorg.pentaho.di.core.exception.KettleXMLException
- if an error occurspublic void readRep(org.pentaho.di.repository.Repository rep, org.pentaho.di.repository.ObjectId id_step, List<org.pentaho.di.core.database.DatabaseMeta> databases, Map<String,org.pentaho.di.core.Counter> counters) throws org.pentaho.di.core.exception.KettleException
readRep
in interface org.pentaho.di.trans.step.StepMetaInterface
readRep
in class org.pentaho.di.trans.step.BaseStepMeta
rep
- the repository to accessid_step
- the id for this steporg.pentaho.di.core.exception.KettleException
- if an error occurspublic void saveRep(org.pentaho.di.repository.Repository rep, org.pentaho.di.repository.ObjectId id_transformation, org.pentaho.di.repository.ObjectId id_step) throws org.pentaho.di.core.exception.KettleException
saveRep
in interface org.pentaho.di.trans.step.StepMetaInterface
saveRep
in class org.pentaho.di.trans.step.BaseStepMeta
rep
- the repository to save toid_transformation
- transformation idid_step
- step idorg.pentaho.di.core.exception.KettleException
- if an error occurspublic void getFields(org.pentaho.di.core.row.RowMetaInterface row, String origin, org.pentaho.di.core.row.RowMetaInterface[] info, org.pentaho.di.trans.step.StepMeta nextStep, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleStepException
getFields
in interface org.pentaho.di.trans.step.StepMetaInterface
getFields
in class org.pentaho.di.trans.step.BaseStepMeta
row
- the meta data for the output producedorigin
- the name of the step to be used as the origininfo
- The input rows metadata that enters the step through the
specified channels in the same order as in method getInfoSteps().
The step metadata can then choose what to do with it: ignore it or
not.nextStep
- if this is a non-null value, it's the next step in the
transformation. The one who's asking, the step where the data is
targetted towards.space
- not sure what this is :-)org.pentaho.di.core.exception.KettleStepException
- if an error occurspublic void check(List<org.pentaho.di.core.CheckResultInterface> remarks, org.pentaho.di.trans.TransMeta transmeta, org.pentaho.di.trans.step.StepMeta stepMeta, org.pentaho.di.core.row.RowMetaInterface prev, String[] input, String[] output, org.pentaho.di.core.row.RowMetaInterface info)
check
in interface org.pentaho.di.trans.step.StepMetaInterface
check
in class org.pentaho.di.trans.step.BaseStepMeta
remarks
- the list to put the remarks in. see
org.pentaho.di.core.CheckResult
transmeta
- the transform meta datastepMeta
- the step meta dataprev
- the fields coming from a previous stepinput
- the input step namesoutput
- the output step namesinfo
- the fields that are used as information by the steppublic String getDialogClassName()
getDialogClassName
in interface org.pentaho.di.trans.step.StepMetaInterface
getDialogClassName
in class org.pentaho.di.trans.step.BaseStepMeta
public org.pentaho.di.trans.step.StepInterface getStep(org.pentaho.di.trans.step.StepMeta stepMeta, org.pentaho.di.trans.step.StepDataInterface stepDataInterface, int cnr, org.pentaho.di.trans.TransMeta tr, org.pentaho.di.trans.Trans trans)
getStep
in interface org.pentaho.di.trans.step.StepMetaInterface
stepMeta
- the step infostepDataInterface
- the step data interface linked to this step. Here
the step can store temporary data, database connections, etc.cnr
- the copy number to get.tr
- the transformation info.trans
- the launching transformationStepInterface
valuepublic org.pentaho.di.trans.step.StepDataInterface getStepData()
getStepData
in interface org.pentaho.di.trans.step.StepMetaInterface
StepDataInterface
value