| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.trans.steps.scriptvalues_mod.ScriptValuesModDummy
public class ScriptValuesModDummy
Dummy class used for test().
| Constructor Summary | |
|---|---|
ScriptValuesModDummy(org.pentaho.di.core.row.RowMetaInterface inputRowMeta,
                     org.pentaho.di.core.row.RowMetaInterface outputRowMeta)
 | 
|
| Method Summary | |
|---|---|
 void | 
addRowListener(RowListener rowListener)
Add a rowlistener to the step allowing you to inspect (or manipulate, be careful) the rows coming in or exiting the step.  | 
 void | 
addStepListener(StepListener stepListener)
Attach a step listener to be notified when a step arrives in a certain state.  | 
 void | 
batchComplete()
Calling this method will alert the step that we finished passing a batch of records to the step.  | 
 boolean | 
canProcessOneRow()
This method checks if the step is capable of processing at least one row.  | 
 void | 
cleanup()
Call this method typically, after ALL the slave transformations in a clustered run have finished.  | 
 void | 
copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
 | 
 void | 
dispose(StepMetaInterface sii,
        StepDataInterface sdi)
Dispose of this step: close files, empty logs, etc.  | 
 String | 
environmentSubstitute(String aString)
 | 
 String[] | 
environmentSubstitute(String[] string)
 | 
 boolean | 
getBooleanValueOfVariable(String variableName,
                          boolean defaultValue)
 | 
 int | 
getCopy()
 | 
 long | 
getErrors()
Get the number of errors  | 
 org.pentaho.di.core.row.RowMetaInterface | 
getInputRowMeta()
 | 
 List<org.pentaho.di.core.RowSet> | 
getInputRowSets()
 | 
 long | 
getLinesInput()
 | 
 long | 
getLinesOutput()
 | 
 long | 
getLinesRead()
 | 
 long | 
getLinesRejected()
 | 
 long | 
getLinesUpdated()
 | 
 long | 
getLinesWritten()
 | 
 org.pentaho.di.core.logging.LogChannelInterface | 
getLogChannel()
 | 
 org.pentaho.di.core.row.RowMetaInterface | 
getOutputRowMeta()
 | 
 List<org.pentaho.di.core.RowSet> | 
getOutputRowSets()
 | 
 org.pentaho.di.core.variables.VariableSpace | 
getParentVariableSpace()
 | 
 String | 
getPartitionID()
 | 
 long | 
getProcessed()
 | 
 Map<String,org.pentaho.di.core.ResultFile> | 
getResultFiles()
 | 
 Object[] | 
getRow()
 | 
 List<RowListener> | 
getRowListeners()
 | 
 long | 
getRuntime()
 | 
 BaseStepData.StepExecutionStatus | 
getStatus()
 | 
 String | 
getStepID()
 | 
 StepMeta | 
getStepMeta()
 | 
 String | 
getStepname()
Get the name of the step.  | 
 Trans | 
getTrans()
 | 
 TransMeta | 
getTransMeta()
 | 
 String | 
getVariable(String variableName)
 | 
 String | 
getVariable(String variableName,
            String defaultValue)
 | 
 void | 
identifyErrorOutput()
To be used to flag an error output channel of a step prior to execution for performance reasons.  | 
 boolean | 
init(StepMetaInterface stepMetaInterface,
     StepDataInterface stepDataInterface)
Initialize and do work where other steps need to wait for...  | 
 void | 
initBeforeStart()
This method is executed by Trans right before the threads start and right after initialization. !!! A plugin implementing this method should make sure to also call super.initBeforeStart(); !!!  | 
 void | 
initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
 | 
 void | 
injectVariables(Map<String,String> prop)
 | 
 boolean | 
isAlive()
 | 
 boolean | 
isIdle()
 | 
 boolean | 
isMapping()
 | 
 boolean | 
isPartitioned()
 | 
 boolean | 
isPassingData()
 | 
 boolean | 
isPaused()
 | 
 boolean | 
isRunning()
 | 
 boolean | 
isStopped()
 | 
 boolean | 
isUsingThreadPriorityManagment()
 | 
 boolean | 
isWaitingForData()
 | 
 String[] | 
listVariables()
 | 
 void | 
markStart()
Mark the start time of the step.  | 
 void | 
markStop()
Mark the end time of the step.  | 
 void | 
pauseRunning()
Pause a running step  | 
 boolean | 
processRow(StepMetaInterface smi,
           StepDataInterface sdi)
Perform the equivalent of processing one row.  | 
 void | 
putRow(org.pentaho.di.core.row.RowMetaInterface rowMeta,
       Object[] row)
Put a row on the destination rowsets.  | 
 void | 
removeRowListener(RowListener rowListener)
Remove a rowlistener from this step.  | 
 void | 
resumeRunning()
Resume a running step  | 
 int | 
rowsetInputSize()
 | 
 int | 
rowsetOutputSize()
 | 
 void | 
run()
 | 
 void | 
setErrors(long errors)
Sets the number of errors  | 
 void | 
setLinesRejected(long linesRejected)
 | 
 void | 
setOutputDone()
Signal output done to destination steps  | 
 void | 
setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
 | 
 void | 
setPartitioned(boolean partitioned)
 | 
 void | 
setPartitionID(String partitionID)
 | 
 void | 
setPassingData(boolean passingData)
 | 
 void | 
setRepartitioning(int partitioningMethod)
 | 
 void | 
setRunning(boolean running)
Flag the step as running or not  | 
 void | 
setStopped(boolean stopped)
 | 
 void | 
setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment)
 | 
 void | 
setVariable(String variableName,
            String variableValue)
 | 
 void | 
setWaitingForData(boolean waitingForData)
 | 
 void | 
shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
 | 
 void | 
start()
 | 
 void | 
stopAll()
Flags all rowsets as stopped/completed/finished.  | 
 void | 
stopRunning(StepMetaInterface stepMetaInterface,
            StepDataInterface stepDataInterface)
Stop running operations...  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public ScriptValuesModDummy(org.pentaho.di.core.row.RowMetaInterface inputRowMeta,
                            org.pentaho.di.core.row.RowMetaInterface outputRowMeta)
| Method Detail | 
|---|
public boolean processRow(StepMetaInterface smi,
                          StepDataInterface sdi)
                   throws org.pentaho.di.core.exception.KettleException
StepInterface
processRow in interface StepInterfacesmi - The steps metadata to work withsdi - The steps temporary working data to work with (database connections, result sets, caches, temporary variables, etc.)
org.pentaho.di.core.exception.KettleExceptionpublic void addRowListener(RowListener rowListener)
StepInterface
addRowListener in interface StepInterfacerowListener - the rowlistener to add
public void dispose(StepMetaInterface sii,
                    StepDataInterface sdi)
StepInterface
dispose in interface StepInterfacesii - The metadata to work withsdi - The data to dispose ofpublic long getErrors()
StepInterface
getErrors in interface StepInterfacepublic List<org.pentaho.di.core.RowSet> getInputRowSets()
getInputRowSets in interface StepInterfacepublic long getLinesInput()
getLinesInput in interface StepInterfacepublic long getLinesOutput()
getLinesOutput in interface StepInterfacepublic long getLinesRead()
getLinesRead in interface StepInterfacepublic long getLinesUpdated()
getLinesUpdated in interface StepInterfacepublic long getLinesWritten()
getLinesWritten in interface StepInterfacepublic long getLinesRejected()
getLinesRejected in interface StepInterfacepublic List<org.pentaho.di.core.RowSet> getOutputRowSets()
getOutputRowSets in interface StepInterfacepublic String getPartitionID()
getPartitionID in interface StepInterface
public Object[] getRow()
                throws org.pentaho.di.core.exception.KettleException
getRow in interface StepInterfaceorg.pentaho.di.core.exception.KettleExceptionpublic List<RowListener> getRowListeners()
getRowListeners in interface StepInterfacepublic String getStepID()
getStepID in interface StepInterfacepublic String getStepname()
StepInterface
getStepname in interface StepInterface
public boolean init(StepMetaInterface stepMetaInterface,
                    StepDataInterface stepDataInterface)
StepInterface
init in interface StepInterfacestepMetaInterface - The metadata to work withstepDataInterface - The data to initializepublic boolean isAlive()
public boolean isPartitioned()
isPartitioned in interface StepInterfacepublic boolean isStopped()
isStopped in interface StepInterfacepublic void markStart()
StepInterface
markStart in interface StepInterfacepublic void markStop()
StepInterface
markStop in interface StepInterface
public void putRow(org.pentaho.di.core.row.RowMetaInterface rowMeta,
                   Object[] row)
            throws org.pentaho.di.core.exception.KettleException
StepInterface
putRow in interface StepInterfacerowMeta - The row to send to the destinations steps
org.pentaho.di.core.exception.KettleExceptionpublic void removeRowListener(RowListener rowListener)
StepInterface
removeRowListener in interface StepInterfacerowListener - the rowlistener to removepublic void run()
public void setErrors(long errors)
StepInterface
setErrors in interface StepInterfaceerrors - the number of errors to setpublic void setOutputDone()
StepInterface
setOutputDone in interface StepInterfacepublic void setPartitionID(String partitionID)
setPartitionID in interface StepInterfacepartitionID - the partitionID to setpublic void start()
public void stopAll()
StepInterface
stopAll in interface StepInterface
public void stopRunning(StepMetaInterface stepMetaInterface,
                        StepDataInterface stepDataInterface)
                 throws org.pentaho.di.core.exception.KettleException
StepInterface
stopRunning in interface StepInterfacestepMetaInterface - The metadata that might be needed by the step to stop running.stepDataInterface - The interface to the step data containing the connections, resultsets, open files, etc.
org.pentaho.di.core.exception.KettleExceptionpublic void cleanup()
StepInterface
cleanup in interface StepInterfacepublic void pauseRunning()
StepInterface
pauseRunning in interface StepInterfacepublic void resumeRunning()
StepInterface
resumeRunning in interface StepInterfacepublic void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
copyVariablesFrom in interface org.pentaho.di.core.variables.VariableSpacepublic String environmentSubstitute(String aString)
environmentSubstitute in interface org.pentaho.di.core.variables.VariableSpacepublic String[] environmentSubstitute(String[] string)
environmentSubstitute in interface org.pentaho.di.core.variables.VariableSpace
public boolean getBooleanValueOfVariable(String variableName,
                                         boolean defaultValue)
getBooleanValueOfVariable in interface org.pentaho.di.core.variables.VariableSpacepublic org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
getParentVariableSpace in interface org.pentaho.di.core.variables.VariableSpacepublic void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
setParentVariableSpace in interface org.pentaho.di.core.variables.VariableSpace
public String getVariable(String variableName,
                          String defaultValue)
getVariable in interface org.pentaho.di.core.variables.VariableSpacepublic String getVariable(String variableName)
getVariable in interface org.pentaho.di.core.variables.VariableSpacepublic void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
initializeVariablesFrom in interface org.pentaho.di.core.variables.VariableSpacepublic void injectVariables(Map<String,String> prop)
injectVariables in interface org.pentaho.di.core.variables.VariableSpacepublic String[] listVariables()
listVariables in interface org.pentaho.di.core.variables.VariableSpace
public void setVariable(String variableName,
                        String variableValue)
setVariable in interface org.pentaho.di.core.variables.VariableSpacepublic void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
shareVariablesWith in interface org.pentaho.di.core.variables.VariableSpacepublic org.pentaho.di.core.row.RowMetaInterface getInputRowMeta()
public org.pentaho.di.core.row.RowMetaInterface getOutputRowMeta()
public void initBeforeStart()
                     throws org.pentaho.di.core.exception.KettleStepException
StepInterface
initBeforeStart in interface StepInterfaceorg.pentaho.di.core.exception.KettleStepException - In case there is an errorpublic void setLinesRejected(long linesRejected)
setLinesRejected in interface StepInterfacelinesRejected - steps the lines rejected by error handling.public int getCopy()
getCopy in interface StepInterfacepublic void addStepListener(StepListener stepListener)
StepInterface
addStepListener in interface StepInterfacestepListener - The listener to add to the steppublic boolean isMapping()
isMapping in interface StepInterfacepublic StepMeta getStepMeta()
getStepMeta in interface StepInterfacepublic Trans getTrans()
getTrans in interface StepInterfacepublic TransMeta getTransMeta()
public org.pentaho.di.core.logging.LogChannelInterface getLogChannel()
getLogChannel in interface HasLogChannelInterfacegetLogChannel in interface StepInterfacepublic boolean isRunning()
isRunning in interface StepInterfacepublic boolean isUsingThreadPriorityManagment()
isUsingThreadPriorityManagment in interface StepInterfacepublic void setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment)
setUsingThreadPriorityManagment in interface StepInterfaceusingThreadPriorityManagment - set to true to actively manage priorities of step threadspublic void setRunning(boolean running)
StepInterface
setRunning in interface StepInterfacerunning - the running flag to setpublic void setStopped(boolean stopped)
setStopped in interface StepInterfacestopped - true if the step needs to be stoppedpublic int rowsetInputSize()
rowsetInputSize in interface StepInterfacepublic int rowsetOutputSize()
rowsetOutputSize in interface StepInterfacepublic long getProcessed()
getProcessed in interface StepInterfacepublic Map<String,org.pentaho.di.core.ResultFile> getResultFiles()
getResultFiles in interface StepInterfacepublic long getRuntime()
getRuntime in interface StepInterfacepublic BaseStepData.StepExecutionStatus getStatus()
getStatus in interface StepInterfaceStepDataInterfacepublic boolean isPaused()
isPaused in interface StepInterfacepublic void identifyErrorOutput()
StepInterface
identifyErrorOutput in interface StepInterfacepublic void setPartitioned(boolean partitioned)
setPartitioned in interface StepInterfacepartitioned - true if this step is partitionedpublic void setRepartitioning(int partitioningMethod)
setRepartitioning in interface StepInterfacepublic boolean canProcessOneRow()
StepInterfaceFor example, if a step has no input records but needs at least one to function, it will return false.
canProcessOneRow in interface StepInterfacepublic boolean isWaitingForData()
public void setWaitingForData(boolean waitingForData)
public boolean isIdle()
public boolean isPassingData()
public void setPassingData(boolean passingData)
public void batchComplete()
                   throws org.pentaho.di.core.exception.KettleException
StepInterface
batchComplete in interface StepInterfaceorg.pentaho.di.core.exception.KettleException - In case an error occurs during the processing of the batch of rows.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||