public class ScriptValuesModDummy extends Object implements StepInterface
| Constructor and Description |
|---|
ScriptValuesModDummy(RowMetaInterface inputRowMeta,
RowMetaInterface outputRowMeta) |
| Modifier and Type | Method and Description |
|---|---|
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(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) |
String |
fieldSubstitute(String aString,
RowMetaInterface rowMeta,
Object[] rowData) |
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue) |
int |
getCopy() |
int |
getCurrentInputRowSetNr() |
int |
getCurrentOutputRowSetNr() |
long |
getErrors()
Get the number of errors
|
RowMetaInterface |
getInputRowMeta() |
List<RowSet> |
getInputRowSets() |
long |
getLinesInput() |
long |
getLinesOutput() |
long |
getLinesRead() |
long |
getLinesRejected() |
long |
getLinesUpdated() |
long |
getLinesWritten() |
LogChannelInterface |
getLogChannel() |
org.pentaho.metastore.api.IMetaStore |
getMetaStore() |
RowMetaInterface |
getOutputRowMeta() |
List<RowSet> |
getOutputRowSets() |
VariableSpace |
getParentVariableSpace() |
String |
getPartitionID() |
long |
getProcessed() |
Repository |
getRepository() |
Map<String,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(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(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 |
setCurrentInputRowSetNr(int index) |
void |
setCurrentOutputRowSetNr(int index) |
void |
setErrors(long errors)
Sets the number of errors
|
void |
setLinesRejected(long linesRejected) |
void |
setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)
Pass along the metastore to use when loading external elements at runtime.
|
void |
setOutputDone()
Signal output done to destination steps
|
void |
setParentVariableSpace(VariableSpace parent) |
void |
setPartitioned(boolean partitioned) |
void |
setPartitionID(String partitionID) |
void |
setPassingData(boolean passingData) |
void |
setRepartitioning(int partitioningMethod) |
void |
setRepository(Repository repository) |
void |
setRunning(boolean running)
Flag the step as running or not
|
void |
setSafeStopped(boolean stopped) |
void |
setStopped(boolean stopped) |
void |
setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment) |
void |
setVariable(String variableName,
String variableValue) |
void |
setWaitingForData(boolean waitingForData) |
void |
shareVariablesWith(VariableSpace space) |
void |
start() |
void |
stopAll()
Flags all rowsets as stopped/completed/finished.
|
void |
stopRunning(StepMetaInterface stepMetaInterface,
StepDataInterface stepDataInterface)
Stop running operations...
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRowSetToInputRowSets, addRowSetToOutputRowSets, isSafeStopped, subStatusespublic ScriptValuesModDummy(RowMetaInterface inputRowMeta, RowMetaInterface outputRowMeta)
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException
StepInterfaceprocessRow 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.)KettleExceptionpublic void addRowListener(RowListener rowListener)
StepInterfaceaddRowListener in interface StepInterfacerowListener - the rowlistener to addpublic void dispose(StepMetaInterface sii, StepDataInterface sdi)
StepInterfacedispose in interface StepInterfacesii - The metadata to work withsdi - The data to dispose ofpublic long getErrors()
StepInterfacegetErrors in interface StepInterfacepublic List<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<RowSet> getOutputRowSets()
getOutputRowSets in interface StepInterfacepublic String getPartitionID()
getPartitionID in interface StepInterfacepublic Object[] getRow() throws KettleException
getRow in interface StepInterfaceKettleExceptionpublic List<RowListener> getRowListeners()
getRowListeners in interface StepInterfacepublic String getStepID()
getStepID in interface StepInterfacepublic String getStepname()
StepInterfacegetStepname in interface StepInterfacepublic boolean init(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
StepInterfaceinit 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()
StepInterfacemarkStart in interface StepInterfacepublic void markStop()
StepInterfacemarkStop in interface StepInterfacepublic void putRow(RowMetaInterface rowMeta, Object[] row) throws KettleException
StepInterfaceputRow in interface StepInterfacerowMeta - The row to send to the destinations stepsKettleExceptionpublic void removeRowListener(RowListener rowListener)
StepInterfaceremoveRowListener in interface StepInterfacerowListener - the rowlistener to removepublic void run()
public void setErrors(long errors)
StepInterfacesetErrors in interface StepInterfaceerrors - the number of errors to setpublic void setOutputDone()
StepInterfacesetOutputDone in interface StepInterfacepublic void setPartitionID(String partitionID)
setPartitionID in interface StepInterfacepartitionID - the partitionID to setpublic void start()
public void stopAll()
StepInterfacestopAll in interface StepInterfacepublic void stopRunning(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) throws KettleException
StepInterfacestopRunning 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.KettleExceptionpublic void cleanup()
StepInterfacecleanup in interface StepInterfacepublic void pauseRunning()
StepInterfacepauseRunning in interface StepInterfacepublic void resumeRunning()
StepInterfaceresumeRunning in interface StepInterfacepublic void copyVariablesFrom(VariableSpace space)
copyVariablesFrom in interface VariableSpacepublic String environmentSubstitute(String aString)
environmentSubstitute in interface VariableSpacepublic String[] environmentSubstitute(String[] string)
environmentSubstitute in interface VariableSpacepublic String fieldSubstitute(String aString, RowMetaInterface rowMeta, Object[] rowData) throws KettleValueException
fieldSubstitute in interface VariableSpaceKettleValueExceptionpublic boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable in interface VariableSpacepublic VariableSpace getParentVariableSpace()
getParentVariableSpace in interface VariableSpacepublic void setParentVariableSpace(VariableSpace parent)
setParentVariableSpace in interface VariableSpacepublic String getVariable(String variableName, String defaultValue)
getVariable in interface VariableSpacepublic String getVariable(String variableName)
getVariable in interface VariableSpacepublic void initializeVariablesFrom(VariableSpace parent)
initializeVariablesFrom in interface VariableSpacepublic void injectVariables(Map<String,String> prop)
injectVariables in interface VariableSpacepublic String[] listVariables()
listVariables in interface VariableSpacepublic void setVariable(String variableName, String variableValue)
setVariable in interface VariableSpacepublic void shareVariablesWith(VariableSpace space)
shareVariablesWith in interface VariableSpacepublic RowMetaInterface getInputRowMeta()
public RowMetaInterface getOutputRowMeta()
public void initBeforeStart()
throws KettleStepException
StepInterfaceinitBeforeStart in interface StepInterfaceKettleStepException - 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)
StepInterfaceaddStepListener 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 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)
StepInterfacesetRunning in interface StepInterfacerunning - the running flag to setpublic void setStopped(boolean stopped)
setStopped in interface StepInterfacestopped - true if the step needs to be stoppedpublic void setSafeStopped(boolean stopped)
setSafeStopped in interface StepInterfacestopped - true if the step needs to be safe stoppedpublic int rowsetInputSize()
rowsetInputSize in interface StepInterfacepublic int rowsetOutputSize()
rowsetOutputSize in interface StepInterfacepublic long getProcessed()
getProcessed in interface StepInterfacepublic Map<String,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()
StepInterfaceidentifyErrorOutput in interface StepInterfacepublic void setPartitioned(boolean partitioned)
setPartitioned in interface StepInterfacepartitioned - true if this step is partitionedpublic void setRepartitioning(int partitioningMethod)
setRepartitioning in interface StepInterfacepartitioningMethod - The repartitioning methodpublic 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 KettleException
StepInterfacebatchComplete in interface StepInterfaceKettleException - In case an error occurs during the processing of the batch of rows.public void setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)
StepInterfacesetMetaStore in interface StepInterfacemetaStore - The metastore to usepublic org.pentaho.metastore.api.IMetaStore getMetaStore()
getMetaStore in interface StepInterfacepublic void setRepository(Repository repository)
setRepository in interface StepInterfacerepository - The repository used by the step to load and reference Kettle objects with at runtimepublic Repository getRepository()
getRepository in interface StepInterfacepublic int getCurrentInputRowSetNr()
getCurrentInputRowSetNr in interface StepInterfacepublic void setCurrentOutputRowSetNr(int index)
setCurrentOutputRowSetNr in interface StepInterfaceindex - Sets the index of the active (current) output row set to use.public int getCurrentOutputRowSetNr()
getCurrentOutputRowSetNr in interface StepInterfacepublic void setCurrentInputRowSetNr(int index)
setCurrentInputRowSetNr in interface StepInterfaceindex - Sets the index of the active (current) input row set to use.Copyright © 2020 Hitachi Vantara. All rights reserved.