public interface ScriptInterface extends StepInterface
| 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 |
cleanup()
Call this method typically, after ALL the slave transformations in a clustered run have finished.
|
void |
dispose(StepMetaInterface sii,
StepDataInterface sdi)
Dispose of this step: close files, empty logs, etc.
|
long |
getErrors()
Get the number of errors
|
List<RowSet> |
getInputRowSets() |
long |
getLinesInput() |
long |
getLinesOutput() |
long |
getLinesRead() |
long |
getLinesRejected() |
long |
getLinesUpdated() |
long |
getLinesWritten() |
List<RowSet> |
getOutputRowSets() |
String |
getPartitionID() |
Object[] |
getRow() |
List<RowListener> |
getRowListeners() |
String |
getStepID() |
String |
getStepname()
Get the name of the step.
|
boolean |
init(StepMetaInterface stepMetaInterface,
StepDataInterface stepDataInterface)
Initialize and do work where other steps need to wait for...
|
boolean |
isAlive() |
boolean |
isPartitioned() |
boolean |
isStopped() |
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
|
void |
run() |
void |
setErrors(long errors)
Sets the number of errors
|
void |
setOutputDone()
Signal output done to destination steps
|
void |
setPartitionID(String partitionID) |
void |
start() |
void |
stopAll()
Flags all rowsets as stopped/completed/finished.
|
void |
stopRunning(StepMetaInterface stepMetaInterface,
StepDataInterface stepDataInterface)
Stop running operations...
|
addRowSetToInputRowSets, addRowSetToOutputRowSets, addStepListener, batchComplete, canProcessOneRow, getCopy, getCurrentInputRowSetNr, getCurrentOutputRowSetNr, getLogChannel, getMetaStore, getProcessed, getRepository, getResultFiles, getRuntime, getStatus, getStepMeta, getTrans, identifyErrorOutput, initBeforeStart, isMapping, isPaused, isRunning, isSafeStopped, isUsingThreadPriorityManagment, rowsetInputSize, rowsetOutputSize, setCurrentInputRowSetNr, setCurrentOutputRowSetNr, setLinesRejected, setMetaStore, setPartitioned, setRepartitioning, setRepository, setRunning, setSafeStopped, setStopped, setUsingThreadPriorityManagment, subStatusescopyVariablesFrom, environmentSubstitute, environmentSubstitute, fieldSubstitute, getBooleanValueOfVariable, getParentVariableSpace, getVariable, getVariable, initializeVariablesFrom, injectVariables, listVariables, setParentVariableSpace, setVariable, shareVariablesWithboolean 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.)KettleExceptionvoid addRowListener(RowListener rowListener)
StepInterfaceaddRowListener in interface StepInterfacerowListener - the rowlistener to addvoid dispose(StepMetaInterface sii, StepDataInterface sdi)
StepInterfacedispose in interface StepInterfacesii - The metadata to work withsdi - The data to dispose oflong getErrors()
StepInterfacegetErrors in interface StepInterfaceList<RowSet> getInputRowSets()
getInputRowSets in interface StepInterfacelong getLinesInput()
getLinesInput in interface StepInterfacelong getLinesOutput()
getLinesOutput in interface StepInterfacelong getLinesRead()
getLinesRead in interface StepInterfacelong getLinesUpdated()
getLinesUpdated in interface StepInterfacelong getLinesWritten()
getLinesWritten in interface StepInterfacelong getLinesRejected()
getLinesRejected in interface StepInterfaceList<RowSet> getOutputRowSets()
getOutputRowSets in interface StepInterfaceString getPartitionID()
getPartitionID in interface StepInterfaceObject[] getRow() throws KettleException
getRow in interface StepInterfaceKettleExceptionList<RowListener> getRowListeners()
getRowListeners in interface StepInterfaceString getStepID()
getStepID in interface StepInterfaceString getStepname()
StepInterfacegetStepname in interface StepInterfaceboolean init(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
StepInterfaceinit in interface StepInterfacestepMetaInterface - The metadata to work withstepDataInterface - The data to initializeboolean isAlive()
boolean isPartitioned()
isPartitioned in interface StepInterfaceboolean isStopped()
isStopped in interface StepInterfacevoid markStart()
StepInterfacemarkStart in interface StepInterfacevoid markStop()
StepInterfacemarkStop in interface StepInterfacevoid putRow(RowMetaInterface rowMeta, Object[] row) throws KettleException
StepInterfaceputRow in interface StepInterfacerowMeta - The row to send to the destinations stepsKettleExceptionvoid removeRowListener(RowListener rowListener)
StepInterfaceremoveRowListener in interface StepInterfacerowListener - the rowlistener to removevoid run()
void setErrors(long errors)
StepInterfacesetErrors in interface StepInterfaceerrors - the number of errors to setvoid setOutputDone()
StepInterfacesetOutputDone in interface StepInterfacevoid setPartitionID(String partitionID)
setPartitionID in interface StepInterfacepartitionID - the partitionID to setvoid start()
void stopAll()
StepInterfacestopAll in interface StepInterfacevoid 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.KettleExceptionvoid cleanup()
StepInterfacecleanup in interface StepInterfacevoid pauseRunning()
StepInterfacepauseRunning in interface StepInterfacevoid resumeRunning()
StepInterfaceresumeRunning in interface StepInterfaceCopyright © 2020 Hitachi Vantara. All rights reserved.