Class UserDefinedJavaClass
java.lang.Object
org.pentaho.di.trans.step.BaseStep
org.pentaho.di.trans.steps.userdefinedjavaclass.UserDefinedJavaClass
- All Implemented Interfaces:
org.pentaho.di.core.ExtensionDataInterface,HasLogChannelInterface,org.pentaho.di.core.logging.LoggingObjectInterface,org.pentaho.di.core.logging.LoggingObjectLifecycleInterface,org.pentaho.di.core.variables.VariableSpace,StepInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final UserDefinedJavaClassDatastatic final Stringprotected final UserDefinedJavaClassMetaFields inherited from class org.pentaho.di.trans.step.BaseStep
deadLockCounter, extensionDataMap, first, linesInput, linesOutput, linesRead, linesRejected, linesSkipped, linesUpdated, linesWritten, log, metaStore, repository, rowListeners, safeStopped, terminator, terminator_rows, variables -
Constructor Summary
ConstructorsConstructorDescriptionUserDefinedJavaClass(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResultFile(org.pentaho.di.core.ResultFile resultFile) Adds the result file.voidaddResultFileImpl(org.pentaho.di.core.ResultFile resultFile) voidaddRowListener(RowListener rowListener) Add a rowlistener to the step allowing you to inspect (or manipulate, be careful) the rows coming in or exiting the step.voidaddRowListenerImpl(RowListener rowListener) voidaddStepListener(StepListener stepListener) Attach a step listener to be notified when a step arrives in a certain state.voidaddStepListenerImpl(StepListener stepListener) booleancheckFeedback(long lines) Check feedback.booleancheckFeedbackImpl(long lines) voidcleanup()Call this method typically, after ALL the slave transformations in a clustered run have finished.voidlongDecrements the number of lines read from previous steps by onelonglongDecrements the number of lines written to next steps by onelongvoiddispose(StepMetaInterface smi, StepDataInterface sdi) Dispose of this step: close files, empty logs, etc.voiddisposeImpl(StepMetaInterface smi, StepDataInterface sdi) org.pentaho.di.core.RowSetfindInputRowSet(String sourceStep) Find input row set.org.pentaho.di.core.RowSetfindInputRowSet(String from, int fromcopy, String to, int tocopy) Find input row set.org.pentaho.di.core.RowSetfindInputRowSetImpl(String sourceStep) org.pentaho.di.core.RowSetfindInputRowSetImpl(String from, int fromcopy, String to, int tocopy) org.pentaho.di.core.RowSetfindOutputRowSet(String targetStep) Find output row set.org.pentaho.di.core.RowSetfindOutputRowSet(String from, int fromcopy, String to, int tocopy) Find an output rowset in a running transformation.org.pentaho.di.core.RowSetfindOutputRowSetImpl(String targetStep) org.pentaho.di.core.RowSetfindOutputRowSetImpl(String from, int fromcopy, String to, int tocopy) intReturns the cluster size.intintorg.pentaho.di.core.row.RowMetaInterfaceorg.pentaho.di.core.row.RowMetaInterfacelongGet the number of errorslongorg.pentaho.di.core.row.RowMetaInterfaceorg.pentaho.di.core.row.RowMetaInterfaceList<org.pentaho.di.core.RowSet>List<org.pentaho.di.core.RowSet>longlonglonglonglonglonglonglonglonglonglonglonglonglongList<org.pentaho.di.core.RowSet>List<org.pentaho.di.core.RowSet>longlongintintObject[]getRow()In case of getRow, we receive data from previous steps through the input rowset.Object[]getRowFrom(org.pentaho.di.core.RowSet rowSet) Gets the row from.Object[]getRowFromImpl(org.pentaho.di.core.RowSet rowSet) Object[]longlongintReturns the unique slave number in the cluster.intRetutns the socket repository.Gets the status description.Returns the step listeners.Get the name of the step.Returns the step ID via the getStepID() method call.intReturns the number of unique steps across all slave servers.intintReturns a unique step number across all slave servers: slaveNr * nrCopies + copyNr.intgetVariable(String variableName) getVariable(String variableName, String defaultValue) getVariableImpl(String variableName) getVariableImpl(String variableName, String defaultValue) longIncrements the number of lines read from an input source: database, file, socket, etc.longlongIncrements the number of lines written to an output target: database, file, socket, etc.longlongIncrements the number of lines read from previous steps by onelonglongIncrements the number of lines rejected to an error handling steplonglongIncrements the number of lines skippedlonglongIncrements the number of lines updated in an output target: database, file, socket, etc.longlongIncrements the number of lines written to next steps by onelongbooleaninit(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) Initialize and do work where other steps need to wait for...voidThis method is executed by Trans right before the threads start and right after initialization.voidbooleaninitImpl(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) booleanbooleanbooleanChecks if is initialising.booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanRetusn true if we are actively managing priorities of step threads.booleanvoidLog basic.voidvoidLog debug.voidvoidLog detailed.voidvoidLog error.voidLog error.voidvoidlogErrorImpl(String s, Throwable e) voidlogMinimal(String s) Log minimal.voidvoidLog rowlevel.voidvoidLog summary.voidvoidMark the start time of the step.voidvoidmarkStop()Mark the end time of the step.voidvoidOpens socket connections to the remote input steps of this step.voidvoidOpens socket connections to the remote output steps of this step.voidbooleanOutput is done.booleanbooleanprocessRow(StepMetaInterface smi, StepDataInterface sdi) Perform the equivalent of processing one row.voidputError(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) Put error.voidputErrorImpl(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) voidputRow is used to copy a row, to the alternate rowset(s) This should get priority over everything else! (synchronized) If distribute is true, a row is copied only once to the output rowsets, otherwise copies are sent to each rowset!voidputRowImpl(org.pentaho.di.core.row.RowMetaInterface row, Object[] data) voidputRowTo(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet) putRowTo is used to put a row in a certain specific RowSet.voidputRowToImpl(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet) voidremoveRowListener(RowListener rowListener) Remove a rowlistener from this step.voidremoveRowListenerImpl(RowListener rowListener) intintintintvoidsafeModeChecking(org.pentaho.di.core.row.RowMetaInterface row) Safe mode checking.voidsafeModeCheckingImpl(org.pentaho.di.core.row.RowMetaInterface row) voidsetErrors(long errors) Sets the number of errorsvoidsetErrorsImpl(long errors) voidsetInputRowMeta(org.pentaho.di.core.row.RowMetaInterface rowMeta) voidsetInputRowMetaImpl(org.pentaho.di.core.row.RowMetaInterface rowMeta) voidsetInputRowSets(List<org.pentaho.di.core.RowSet> inputRowSets) voidsetInputRowSetsImpl(List<org.pentaho.di.core.RowSet> inputRowSets) voidsetLinesInput(long newLinesInputValue) voidsetLinesInputImpl(long newLinesInputValue) voidsetLinesOutput(long newLinesOutputValue) voidsetLinesOutputImpl(long newLinesOutputValue) voidsetLinesRead(long newLinesReadValue) voidsetLinesReadImpl(long newLinesReadValue) voidsetLinesRejected(long linesRejected) voidsetLinesRejectedImpl(long linesRejected) voidsetLinesSkipped(long newLinesSkippedValue) voidsetLinesSkippedImpl(long newLinesSkippedValue) voidsetLinesUpdated(long newLinesUpdatedValue) voidsetLinesUpdatedImpl(long newLinesUpdatedValue) voidsetLinesWritten(long newLinesWrittenValue) voidsetLinesWrittenImpl(long newLinesWrittenValue) voidSignal output done to destination stepsvoidvoidsetOutputRowSets(List<org.pentaho.di.core.RowSet> outputRowSets) voidsetOutputRowSetsImpl(List<org.pentaho.di.core.RowSet> outputRowSets) voidsetStepListeners(List<StepListener> stepListeners) Sets the step listeners.voidsetStepListenersImpl(List<StepListener> stepListeners) voidsetVariable(String variableName, String variableValue) voidsetVariableImpl(String variableName, String variableValue) voidstopAll()Flags all rowsets as stopped/completed/finished.voidvoidstopRunning(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) Perform actions to stop a running step.voidstopRunningImpl(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) toString()Methods inherited from class org.pentaho.di.trans.step.BaseStep
addRowSetToInputRowSets, addRowSetToOutputRowSets, batchComplete, beforeStartProcessing, buildLog, canProcessOneRow, clearInputRowSets, clearOutputRowSets, closeQuietly, copyVariablesFrom, dispatch, environmentSubstitute, environmentSubstitute, environmentSubstitute, fieldSubstitute, getBooleanValueOfVariable, getContainerObjectId, getCopy, getCurrentInputRowSetNr, getCurrentOutputRowSetNr, getDispatcher, getExtensionDataMap, getFilename, getFirstInputRowSet, getLogChannel, getLogChannelId, getLogFields, getLogLevel, getMetaStore, getNextClassNr, getObjectCopy, getObjectId, getObjectName, getObjectRevision, getObjectType, getParent, getParentVariableSpace, getPreviewRowMeta, getRegistrationDate, getRemoteInputSteps, getRemoteOutputSteps, getRepository, getRepositoryDirectory, getRowHandler, getServerSockets, getStepMetaInterface, getTrans, handleGetRowFrom, handlePutRowTo, identifyErrorOutput, initializeVariablesFrom, injectVariables, isBasic, isDebug, isDetailed, isForcingSeparateLogging, isGatheringMetrics, isMapping, isPaused, isRowLevel, isRunning, isSafeStopped, listVariables, logBasic, logDebug, logDetailed, logError, logMinimal, logRowlevel, pauseRunning, resumeRunning, safeModeChecking, setCarteObjectId, setCopy, setCurrentInputRowSetNr, setCurrentOutputRowSetNr, setDistributed, setErrorRowMeta, setForcingSeparateLogging, setGatheringMetrics, setInternalVariables, setLogLevel, setMetaStore, setParentVariableSpace, setPartitioned, setPartitionID, setPartitionTargets, setPaused, setPaused, setPreviewRowMeta, setRepartitioning, setRepository, setRowHandler, setRunning, setSafeStopped, setServerSockets, setSocketRepository, setStepDataInterface, setStepMeta, setStepMetaInterface, setStepname, setStopped, setTransMeta, setUsingThreadPriorityManagment, shareVariablesWith, stopRunning, swapFirstInputRowSetIfExists, verifyInputDeadLock, waitUntilTransformationIsStartedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.pentaho.di.core.logging.LoggingObjectLifecycleInterface
callAfterLog, callBeforeLogMethods inherited from interface org.pentaho.di.trans.step.StepInterface
addRowSetToInputRowSets, addRowSetToOutputRowSets, afterFinishProcessing, batchComplete, beforeStartProcessing, canProcessOneRow, getCopy, getCurrentInputRowSetNr, getCurrentOutputRowSetNr, getLogChannel, getMetaStore, getRepository, getTrans, identifyErrorOutput, isMapping, isPaused, isRunning, isSafeStopped, pauseRunning, resumeRunning, setCurrentInputRowSetNr, setCurrentOutputRowSetNr, setMetaStore, setPartitioned, setPartitionID, setRepartitioning, setRepository, setRunning, setSafeStopped, setStopped, setUsingThreadPriorityManagment, subStatusesMethods inherited from interface org.pentaho.di.core.variables.VariableSpace
copyVariablesFrom, environmentSubstitute, environmentSubstitute, environmentSubstitute, fieldSubstitute, getBooleanValueOfVariable, getParentVariableSpace, initializeVariablesFrom, injectVariables, listVariables, setParentVariableSpace, shareVariablesWith
-
Field Details
-
meta
-
data
-
KETTLE_DEFAULT_CLASS_CACHE_SIZE
- See Also:
-
-
Constructor Details
-
UserDefinedJavaClass
public UserDefinedJavaClass(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans)
-
-
Method Details
-
addResultFile
public void addResultFile(org.pentaho.di.core.ResultFile resultFile) Description copied from class:BaseStepAdds the result file.- Overrides:
addResultFilein classBaseStep- Parameters:
resultFile- the result file
-
addResultFileImpl
public void addResultFileImpl(org.pentaho.di.core.ResultFile resultFile) -
addRowListener
Description copied from interface:StepInterfaceAdd a rowlistener to the step allowing you to inspect (or manipulate, be careful) the rows coming in or exiting the step.- Specified by:
addRowListenerin interfaceStepInterface- Overrides:
addRowListenerin classBaseStep- Parameters:
rowListener- the rowlistener to add
-
addRowListenerImpl
-
addStepListener
Description copied from interface:StepInterfaceAttach a step listener to be notified when a step arrives in a certain state. (finished)- Specified by:
addStepListenerin interfaceStepInterface- Overrides:
addStepListenerin classBaseStep- Parameters:
stepListener- The listener to add to the step
-
addStepListenerImpl
-
checkFeedback
public boolean checkFeedback(long lines) Description copied from class:BaseStepCheck feedback.- Overrides:
checkFeedbackin classBaseStep- Parameters:
lines- the lines- Returns:
- true, if successful
-
checkFeedbackImpl
public boolean checkFeedbackImpl(long lines) -
cleanup
public void cleanup()Description copied from interface:StepInterfaceCall this method typically, after ALL the slave transformations in a clustered run have finished.- Specified by:
cleanupin interfaceStepInterface- Overrides:
cleanupin classBaseStep
-
cleanupImpl
public void cleanupImpl() -
decrementLinesRead
public long decrementLinesRead()Description copied from class:BaseStepDecrements the number of lines read from previous steps by one- Overrides:
decrementLinesReadin classBaseStep- Returns:
- Returns the new value
-
decrementLinesReadImpl
public long decrementLinesReadImpl() -
decrementLinesWritten
public long decrementLinesWritten()Description copied from class:BaseStepDecrements the number of lines written to next steps by one- Overrides:
decrementLinesWrittenin classBaseStep- Returns:
- Returns the new value
-
decrementLinesWrittenImpl
public long decrementLinesWrittenImpl() -
dispose
Description copied from interface:StepInterfaceDispose of this step: close files, empty logs, etc.- Specified by:
disposein interfaceStepInterface- Overrides:
disposein classBaseStep- Parameters:
smi- The metadata to work withsdi- The data to dispose of
-
disposeImpl
-
findInputRowSet
public org.pentaho.di.core.RowSet findInputRowSet(String sourceStep) throws org.pentaho.di.core.exception.KettleStepException Description copied from class:BaseStepFind input row set.- Overrides:
findInputRowSetin classBaseStep- Parameters:
sourceStep- the source step- Returns:
- the row set
- Throws:
org.pentaho.di.core.exception.KettleStepException- the kettle step exception
-
findInputRowSet
Description copied from class:BaseStepFind input row set.- Overrides:
findInputRowSetin classBaseStep- Parameters:
from- the fromfromcopy- the fromcopyto- the totocopy- the tocopy- Returns:
- the row set
-
findInputRowSetImpl
public org.pentaho.di.core.RowSet findInputRowSetImpl(String sourceStep) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
findInputRowSetImpl
-
findOutputRowSet
public org.pentaho.di.core.RowSet findOutputRowSet(String targetStep) throws org.pentaho.di.core.exception.KettleStepException Description copied from class:BaseStepFind output row set.- Overrides:
findOutputRowSetin classBaseStep- Parameters:
targetStep- the target step- Returns:
- the row set
- Throws:
org.pentaho.di.core.exception.KettleStepException- the kettle step exception
-
findOutputRowSet
public org.pentaho.di.core.RowSet findOutputRowSet(String from, int fromcopy, String to, int tocopy) Description copied from class:BaseStepFind an output rowset in a running transformation. It will also look at the "to" step to see if this is a mapping. If it is, it will find the appropriate rowset in that transformation.- Overrides:
findOutputRowSetin classBaseStep- Returns:
- The rowset or null if none is found.
-
findOutputRowSetImpl
public org.pentaho.di.core.RowSet findOutputRowSetImpl(String targetStep) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
findOutputRowSetImpl
-
getClusterSize
public int getClusterSize()Description copied from class:BaseStepReturns the cluster size.- Overrides:
getClusterSizein classBaseStep- Returns:
- the cluster size
-
getClusterSizeImpl
public int getClusterSizeImpl() -
getCopyImpl
public int getCopyImpl() -
getErrorRowMeta
public org.pentaho.di.core.row.RowMetaInterface getErrorRowMeta()- Overrides:
getErrorRowMetain classBaseStep- Returns:
- the errorRowMeta
-
getErrorRowMetaImpl
public org.pentaho.di.core.row.RowMetaInterface getErrorRowMetaImpl() -
getErrors
public long getErrors()Description copied from interface:StepInterfaceGet the number of errors- Specified by:
getErrorsin interfaceStepInterface- Overrides:
getErrorsin classBaseStep- Returns:
- the number of errors
-
getErrorsImpl
public long getErrorsImpl() -
getInputRowMeta
public org.pentaho.di.core.row.RowMetaInterface getInputRowMeta()- Overrides:
getInputRowMetain classBaseStep- Returns:
- the rowMeta
-
getInputRowMetaImpl
public org.pentaho.di.core.row.RowMetaInterface getInputRowMetaImpl() -
getInputRowSets
- Specified by:
getInputRowSetsin interfaceStepInterface- Overrides:
getInputRowSetsin classBaseStep- Returns:
- Returns the inputRowSets.
-
getInputRowSetsImpl
-
getLinesInput
public long getLinesInput()- Specified by:
getLinesInputin interfaceStepInterface- Overrides:
getLinesInputin classBaseStep- Returns:
- Returns the number of lines read from an input source: database, file, socket, etc.
-
getLinesInputImpl
public long getLinesInputImpl() -
getLinesOutput
public long getLinesOutput()- Specified by:
getLinesOutputin interfaceStepInterface- Overrides:
getLinesOutputin classBaseStep- Returns:
- Returns the number of lines written to an output target: database, file, socket, etc.
-
getLinesOutputImpl
public long getLinesOutputImpl() -
getLinesRead
public long getLinesRead()- Specified by:
getLinesReadin interfaceStepInterface- Overrides:
getLinesReadin classBaseStep- Returns:
- Returns the number of lines read from previous steps
-
getLinesReadImpl
public long getLinesReadImpl() -
getLinesRejected
public long getLinesRejected()- Specified by:
getLinesRejectedin interfaceStepInterface- Overrides:
getLinesRejectedin classBaseStep- Returns:
- the number of lines rejected to an error handling step
-
getLinesRejectedImpl
public long getLinesRejectedImpl() -
getLinesSkipped
public long getLinesSkipped()- Overrides:
getLinesSkippedin classBaseStep- Returns:
- the number of lines skipped
-
getLinesSkippedImpl
public long getLinesSkippedImpl() -
getLinesUpdated
public long getLinesUpdated()- Specified by:
getLinesUpdatedin interfaceStepInterface- Overrides:
getLinesUpdatedin classBaseStep- Returns:
- Returns the number of lines updated in an output target: database, file, socket, etc.
-
getLinesUpdatedImpl
public long getLinesUpdatedImpl() -
getLinesWritten
public long getLinesWritten()- Specified by:
getLinesWrittenin interfaceStepInterface- Overrides:
getLinesWrittenin classBaseStep- Returns:
- Returns the linesWritten.
-
getLinesWrittenImpl
public long getLinesWrittenImpl() -
getOutputRowSets
- Specified by:
getOutputRowSetsin interfaceStepInterface- Overrides:
getOutputRowSetsin classBaseStep- Returns:
- Returns the outputRowSets.
-
getOutputRowSetsImpl
-
getPartitionID
- Specified by:
getPartitionIDin interfaceStepInterface- Overrides:
getPartitionIDin classBaseStep- Returns:
- the partitionID
-
getPartitionIDImpl
-
getPartitionTargets
- Overrides:
getPartitionTargetsin classBaseStep- Returns:
- the partitionTargets
-
getPartitionTargetsImpl
-
getProcessed
public long getProcessed()- Specified by:
getProcessedin interfaceStepInterface- Overrides:
getProcessedin classBaseStep- Returns:
- The number of "processed" lines of a step. Well, a representable metric for that anyway.
-
getProcessedImpl
public long getProcessedImpl() -
getRepartitioning
public int getRepartitioning()- Overrides:
getRepartitioningin classBaseStep- Returns:
- the repartitioning type
-
getRepartitioningImpl
public int getRepartitioningImpl() -
getResultFiles
- Specified by:
getResultFilesin interfaceStepInterface- Overrides:
getResultFilesin classBaseStep- Returns:
- The result files for this step
-
getResultFilesImpl
-
getRow
Description copied from class:BaseStepIn case of getRow, we receive data from previous steps through the input rowset. In case we split the stream, we have to copy the data to the alternate splits: rowsets 1 through n.- Specified by:
getRowin interfaceStepInterface- Overrides:
getRowin classBaseStep- Returns:
- a row from the source step(s).
- Throws:
org.pentaho.di.core.exception.KettleException
-
getRowFrom
public Object[] getRowFrom(org.pentaho.di.core.RowSet rowSet) throws org.pentaho.di.core.exception.KettleStepException Description copied from class:BaseStepGets the row from.- Overrides:
getRowFromin classBaseStep- Parameters:
rowSet- the row set- Returns:
- the row from
- Throws:
org.pentaho.di.core.exception.KettleStepException- the kettle step exception
-
getRowFromImpl
public Object[] getRowFromImpl(org.pentaho.di.core.RowSet rowSet) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
getRowImpl
- Throws:
org.pentaho.di.core.exception.KettleException
-
getRowListeners
- Specified by:
getRowListenersin interfaceStepInterface- Overrides:
getRowListenersin classBaseStep- Returns:
- a list of the installed RowListeners
-
getRowListenersImpl
-
getRuntime
public long getRuntime()- Specified by:
getRuntimein interfaceStepInterface- Overrides:
getRuntimein classBaseStep- Returns:
- The number of ms that this step has been running
-
getRuntimeImpl
public long getRuntimeImpl() -
getSlaveNr
public int getSlaveNr()Description copied from class:BaseStepReturns the unique slave number in the cluster.- Overrides:
getSlaveNrin classBaseStep- Returns:
- the unique slave number in the cluster
-
getSlaveNrImpl
public int getSlaveNrImpl() -
getSocketRepository
Description copied from class:BaseStepRetutns the socket repository.- Overrides:
getSocketRepositoryin classBaseStep- Returns:
- the socketRepository
-
getSocketRepositoryImpl
-
getStatus
- Specified by:
getStatusin interfaceStepInterface- Overrides:
getStatusin classBaseStep- Returns:
- the description as in
StepDataInterface
-
getStatusDescription
Description copied from class:BaseStepGets the status description.- Overrides:
getStatusDescriptionin classBaseStep- Returns:
- the status description
-
getStatusDescriptionImpl
-
getStatusImpl
-
getStepDataInterface
- Overrides:
getStepDataInterfacein classBaseStep- Returns:
- Returns the stepDataInterface.
-
getStepDataInterfaceImpl
-
getStepID
- Specified by:
getStepIDin interfaceStepInterface- Overrides:
getStepIDin classBaseStep- Returns:
- the type ID of the step...
-
getStepIDImpl
-
getStepListeners
Description copied from class:BaseStepReturns the step listeners.- Overrides:
getStepListenersin classBaseStep- Returns:
- the stepListeners
-
getStepListenersImpl
-
getStepMeta
- Specified by:
getStepMetain interfaceStepInterface- Overrides:
getStepMetain classBaseStep- Returns:
- Returns the stepMeta.
-
getStepMetaImpl
-
getStepname
Description copied from interface:StepInterfaceGet the name of the step.- Specified by:
getStepnamein interfaceStepInterface- Overrides:
getStepnamein classBaseStep- Returns:
- the name of the step
-
getStepnameImpl
-
getTransImpl
-
getTransMeta
- Overrides:
getTransMetain classBaseStep- Returns:
- Returns the transMeta.
-
getTransMetaImpl
-
getTypeId
Description copied from class:BaseStepReturns the step ID via the getStepID() method call. Support for CheckResultSourceInterface. -
getTypeIdImpl
-
getUniqueStepCountAcrossSlaves
public int getUniqueStepCountAcrossSlaves()Description copied from class:BaseStepReturns the number of unique steps across all slave servers.- Overrides:
getUniqueStepCountAcrossSlavesin classBaseStep- Returns:
- the number of unique steps across all slave servers
-
getUniqueStepCountAcrossSlavesImpl
public int getUniqueStepCountAcrossSlavesImpl() -
getUniqueStepNrAcrossSlaves
public int getUniqueStepNrAcrossSlaves()Description copied from class:BaseStepReturns a unique step number across all slave servers: slaveNr * nrCopies + copyNr.- Overrides:
getUniqueStepNrAcrossSlavesin classBaseStep- Returns:
- a unique step number across all slave servers: slaveNr * nrCopies + copyNr
-
getUniqueStepNrAcrossSlavesImpl
public int getUniqueStepNrAcrossSlavesImpl() -
getVariable
- Specified by:
getVariablein interfaceorg.pentaho.di.core.variables.VariableSpace- Overrides:
getVariablein classBaseStep
-
getVariable
- Specified by:
getVariablein interfaceorg.pentaho.di.core.variables.VariableSpace- Overrides:
getVariablein classBaseStep
-
getVariableImpl
-
getVariableImpl
-
incrementLinesInput
public long incrementLinesInput()Description copied from class:BaseStepIncrements the number of lines read from an input source: database, file, socket, etc.- Overrides:
incrementLinesInputin classBaseStep- Returns:
- the new incremented value
-
incrementLinesInputImpl
public long incrementLinesInputImpl() -
incrementLinesOutput
public long incrementLinesOutput()Description copied from class:BaseStepIncrements the number of lines written to an output target: database, file, socket, etc.- Overrides:
incrementLinesOutputin classBaseStep- Returns:
- the new incremented value
-
incrementLinesOutputImpl
public long incrementLinesOutputImpl() -
incrementLinesRead
public long incrementLinesRead()Description copied from class:BaseStepIncrements the number of lines read from previous steps by one- Overrides:
incrementLinesReadin classBaseStep- Returns:
- Returns the new value
-
incrementLinesReadImpl
public long incrementLinesReadImpl() -
incrementLinesRejected
public long incrementLinesRejected()Description copied from class:BaseStepIncrements the number of lines rejected to an error handling step- Overrides:
incrementLinesRejectedin classBaseStep- Returns:
- the new incremented value
-
incrementLinesRejectedImpl
public long incrementLinesRejectedImpl() -
incrementLinesSkipped
public long incrementLinesSkipped()Description copied from class:BaseStepIncrements the number of lines skipped- Overrides:
incrementLinesSkippedin classBaseStep- Returns:
- the new incremented value
-
incrementLinesSkippedImpl
public long incrementLinesSkippedImpl() -
incrementLinesUpdated
public long incrementLinesUpdated()Description copied from class:BaseStepIncrements the number of lines updated in an output target: database, file, socket, etc.- Overrides:
incrementLinesUpdatedin classBaseStep- Returns:
- the new incremented value
-
incrementLinesUpdatedImpl
public long incrementLinesUpdatedImpl() -
incrementLinesWritten
public long incrementLinesWritten()Description copied from class:BaseStepIncrements the number of lines written to next steps by one- Overrides:
incrementLinesWrittenin classBaseStep- Returns:
- Returns the new value
-
incrementLinesWrittenImpl
public long incrementLinesWrittenImpl() -
init
Description copied from interface:StepInterfaceInitialize and do work where other steps need to wait for...- Specified by:
initin interfaceStepInterface- Overrides:
initin classBaseStep- Parameters:
stepMetaInterface- The metadata to work withstepDataInterface- The data to initialize
-
initBeforeStart
public void initBeforeStart() throws org.pentaho.di.core.exception.KettleStepExceptionDescription copied from class:BaseStepThis method is executed by Trans right before the threads start and right after initialization.More to the point: here we open remote output step sockets.
- Specified by:
initBeforeStartin interfaceStepInterface- Overrides:
initBeforeStartin classBaseStep- Throws:
org.pentaho.di.core.exception.KettleStepException- In case there is an error
-
initBeforeStartImpl
public void initBeforeStartImpl() throws org.pentaho.di.core.exception.KettleStepException- Throws:
org.pentaho.di.core.exception.KettleStepException
-
initImpl
-
isDistributed
public boolean isDistributed()- Overrides:
isDistributedin classBaseStep- Returns:
- Returns the distributed.
-
isDistributedImpl
public boolean isDistributedImpl() -
isInitialising
public boolean isInitialising()Description copied from class:BaseStepChecks if is initialising.- Overrides:
isInitialisingin classBaseStep- Returns:
- true, if is initialising
-
isInitialisingImpl
public boolean isInitialisingImpl() -
isPartitioned
public boolean isPartitioned()- Specified by:
isPartitionedin interfaceStepInterface- Overrides:
isPartitionedin classBaseStep- Returns:
- the partitioned
-
isPartitionedImpl
public boolean isPartitionedImpl() -
isSafeModeEnabled
public boolean isSafeModeEnabled() -
isSafeModeEnabledImpl
public boolean isSafeModeEnabledImpl() -
isStopped
public boolean isStopped()- Specified by:
isStoppedin interfaceStepInterface- Overrides:
isStoppedin classBaseStep- Returns:
- True if the step is marked as stopped. Execution should stop immediate.
-
isStoppedImpl
public boolean isStoppedImpl() -
isUsingThreadPriorityManagment
public boolean isUsingThreadPriorityManagment()Description copied from class:BaseStepRetusn true if we are actively managing priorities of step threads.- Specified by:
isUsingThreadPriorityManagmentin interfaceStepInterface- Overrides:
isUsingThreadPriorityManagmentin classBaseStep- Returns:
- true if we are actively managing priorities of step threads
-
isUsingThreadPriorityManagmentImpl
public boolean isUsingThreadPriorityManagmentImpl() -
logBasic
Description copied from class:BaseStepLog basic. -
logBasicImpl
-
logDebug
Description copied from class:BaseStepLog debug. -
logDebugImpl
-
logDetailed
Description copied from class:BaseStepLog detailed.- Overrides:
logDetailedin classBaseStep- Parameters:
s- the message
-
logDetailedImpl
-
logError
Description copied from class:BaseStepLog error. -
logError
Description copied from class:BaseStepLog error. -
logErrorImpl
-
logErrorImpl
-
logMinimal
Description copied from class:BaseStepLog minimal.- Overrides:
logMinimalin classBaseStep- Parameters:
s- the message
-
logMinimalImpl
-
logRowlevel
Description copied from class:BaseStepLog rowlevel.- Overrides:
logRowlevelin classBaseStep- Parameters:
s- the message
-
logRowlevelImpl
-
logSummary
public void logSummary()Description copied from class:BaseStepLog summary.- Overrides:
logSummaryin classBaseStep
-
logSummaryImpl
public void logSummaryImpl() -
markStart
public void markStart()Description copied from interface:StepInterfaceMark the start time of the step.- Specified by:
markStartin interfaceStepInterface- Overrides:
markStartin classBaseStep
-
markStartImpl
public void markStartImpl() -
markStop
public void markStop()Description copied from interface:StepInterfaceMark the end time of the step.- Specified by:
markStopin interfaceStepInterface- Overrides:
markStopin classBaseStep
-
markStopImpl
public void markStopImpl() -
openRemoteInputStepSocketsOnce
public void openRemoteInputStepSocketsOnce() throws org.pentaho.di.core.exception.KettleStepExceptionDescription copied from class:BaseStepOpens socket connections to the remote input steps of this step.
This method should be used by steps that don't call getRow() first in which it is executed automatically.
This method should be called before any data is read from previous steps.
This action is executed only once.- Overrides:
openRemoteInputStepSocketsOncein classBaseStep- Throws:
org.pentaho.di.core.exception.KettleStepException
-
openRemoteInputStepSocketsOnceImpl
public void openRemoteInputStepSocketsOnceImpl() throws org.pentaho.di.core.exception.KettleStepException- Throws:
org.pentaho.di.core.exception.KettleStepException
-
openRemoteOutputStepSocketsOnce
public void openRemoteOutputStepSocketsOnce() throws org.pentaho.di.core.exception.KettleStepExceptionDescription copied from class:BaseStepOpens socket connections to the remote output steps of this step.
This method is called in method initBeforeStart() because it needs to connect to the server sockets (remote steps) as soon as possible to avoid time-out situations.
This action is executed only once.- Overrides:
openRemoteOutputStepSocketsOncein classBaseStep- Throws:
org.pentaho.di.core.exception.KettleStepException
-
openRemoteOutputStepSocketsOnceImpl
public void openRemoteOutputStepSocketsOnceImpl() throws org.pentaho.di.core.exception.KettleStepException- Throws:
org.pentaho.di.core.exception.KettleStepException
-
outputIsDone
public boolean outputIsDone()Description copied from class:BaseStepOutput is done.- Overrides:
outputIsDonein classBaseStep- Returns:
- true, if successful
-
outputIsDoneImpl
public boolean outputIsDoneImpl() -
processRow
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws org.pentaho.di.core.exception.KettleException Description copied from interface:StepInterfacePerform the equivalent of processing one row. Typically this means reading a row from input (getRow()) and passing a row to output (putRow)).- Specified by:
processRowin interfaceStepInterface- Overrides:
processRowin classBaseStep- Parameters:
smi- The steps metadata to work withsdi- The steps temporary working data to work with (database connections, result sets, caches, temporary variables, etc.)- Returns:
- false if no more rows can be processed or an error occurred.
- Throws:
org.pentaho.di.core.exception.KettleException
-
putError
public void putError(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) throws org.pentaho.di.core.exception.KettleStepException Description copied from class:BaseStepPut error. -
putErrorImpl
public void putErrorImpl(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
putRow
public void putRow(org.pentaho.di.core.row.RowMetaInterface row, Object[] data) throws org.pentaho.di.core.exception.KettleStepException Description copied from class:BaseStepputRow is used to copy a row, to the alternate rowset(s) This should get priority over everything else! (synchronized) If distribute is true, a row is copied only once to the output rowsets, otherwise copies are sent to each rowset!- Specified by:
putRowin interfaceStepInterface- Overrides:
putRowin classBaseStep- Parameters:
row- The row to send to the destinations stepsdata- The row to put to the destination rowset(s).- Throws:
org.pentaho.di.core.exception.KettleStepException
-
putRowImpl
public void putRowImpl(org.pentaho.di.core.row.RowMetaInterface row, Object[] data) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
putRowTo
public void putRowTo(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet) throws org.pentaho.di.core.exception.KettleStepException Description copied from class:BaseStepputRowTo is used to put a row in a certain specific RowSet. -
putRowToImpl
public void putRowToImpl(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet) throws org.pentaho.di.core.exception.KettleStepException - Throws:
org.pentaho.di.core.exception.KettleStepException
-
removeRowListener
Description copied from interface:StepInterfaceRemove a rowlistener from this step.- Specified by:
removeRowListenerin interfaceStepInterface- Overrides:
removeRowListenerin classBaseStep- Parameters:
rowListener- the rowlistener to remove
-
removeRowListenerImpl
-
rowsetInputSize
public int rowsetInputSize()- Specified by:
rowsetInputSizein interfaceStepInterface- Overrides:
rowsetInputSizein classBaseStep- Returns:
- The total amount of rows in the input buffers
-
rowsetInputSizeImpl
public int rowsetInputSizeImpl() -
rowsetOutputSize
public int rowsetOutputSize()- Specified by:
rowsetOutputSizein interfaceStepInterface- Overrides:
rowsetOutputSizein classBaseStep- Returns:
- The total amount of rows in the output buffers
-
rowsetOutputSizeImpl
public int rowsetOutputSizeImpl() -
safeModeChecking
public void safeModeChecking(org.pentaho.di.core.row.RowMetaInterface row) throws org.pentaho.di.core.exception.KettleRowException Description copied from class:BaseStepSafe mode checking.- Overrides:
safeModeCheckingin classBaseStep- Parameters:
row- the row- Throws:
org.pentaho.di.core.exception.KettleRowException- the kettle row exception
-
safeModeCheckingImpl
public void safeModeCheckingImpl(org.pentaho.di.core.row.RowMetaInterface row) throws org.pentaho.di.core.exception.KettleRowException - Throws:
org.pentaho.di.core.exception.KettleRowException
-
setErrors
public void setErrors(long errors) Description copied from interface:StepInterfaceSets the number of errors- Specified by:
setErrorsin interfaceStepInterface- Overrides:
setErrorsin classBaseStep- Parameters:
errors- the number of errors to set
-
setErrorsImpl
public void setErrorsImpl(long errors) -
setInputRowMeta
public void setInputRowMeta(org.pentaho.di.core.row.RowMetaInterface rowMeta) - Overrides:
setInputRowMetain classBaseStep- Parameters:
rowMeta- the rowMeta to set
-
setInputRowMetaImpl
public void setInputRowMetaImpl(org.pentaho.di.core.row.RowMetaInterface rowMeta) -
setInputRowSets
- Overrides:
setInputRowSetsin classBaseStep- Parameters:
inputRowSets- The inputRowSets to set.
-
setInputRowSetsImpl
-
setLinesInput
public void setLinesInput(long newLinesInputValue) - Overrides:
setLinesInputin classBaseStep- Parameters:
newLinesInputValue- the new number of lines read from an input source: database, file, socket, etc.
-
setLinesInputImpl
public void setLinesInputImpl(long newLinesInputValue) -
setLinesOutput
public void setLinesOutput(long newLinesOutputValue) - Overrides:
setLinesOutputin classBaseStep- Parameters:
newLinesOutputValue- the new number of lines written to an output target: database, file, socket, etc.
-
setLinesOutputImpl
public void setLinesOutputImpl(long newLinesOutputValue) -
setLinesRead
public void setLinesRead(long newLinesReadValue) - Overrides:
setLinesReadin classBaseStep- Parameters:
newLinesReadValue- the new number of lines read from previous steps
-
setLinesReadImpl
public void setLinesReadImpl(long newLinesReadValue) -
setLinesRejected
public void setLinesRejected(long linesRejected) - Specified by:
setLinesRejectedin interfaceStepInterface- Overrides:
setLinesRejectedin classBaseStep- Parameters:
linesRejected- lines number of lines rejected to an error handling step
-
setLinesRejectedImpl
public void setLinesRejectedImpl(long linesRejected) -
setLinesSkipped
public void setLinesSkipped(long newLinesSkippedValue) - Overrides:
setLinesSkippedin classBaseStep- Parameters:
newLinesSkippedValue- lines number of lines skipped
-
setLinesSkippedImpl
public void setLinesSkippedImpl(long newLinesSkippedValue) -
setLinesUpdated
public void setLinesUpdated(long newLinesUpdatedValue) - Overrides:
setLinesUpdatedin classBaseStep- Parameters:
newLinesUpdatedValue- the new number of lines updated in an output target: database, file, socket, etc.
-
setLinesUpdatedImpl
public void setLinesUpdatedImpl(long newLinesUpdatedValue) -
setLinesWritten
public void setLinesWritten(long newLinesWrittenValue) - Overrides:
setLinesWrittenin classBaseStep- Parameters:
newLinesWrittenValue- the new number of lines written to next steps
-
setLinesWrittenImpl
public void setLinesWrittenImpl(long newLinesWrittenValue) -
setOutputDone
public void setOutputDone()Description copied from interface:StepInterfaceSignal output done to destination steps- Specified by:
setOutputDonein interfaceStepInterface- Overrides:
setOutputDonein classBaseStep
-
setOutputDoneImpl
public void setOutputDoneImpl() -
setOutputRowSets
- Overrides:
setOutputRowSetsin classBaseStep- Parameters:
outputRowSets- The outputRowSets to set.
-
setOutputRowSetsImpl
-
setStepListeners
Description copied from class:BaseStepSets the step listeners.- Overrides:
setStepListenersin classBaseStep- Parameters:
stepListeners- the stepListeners to set
-
setStepListenersImpl
-
setVariable
- Specified by:
setVariablein interfaceorg.pentaho.di.core.variables.VariableSpace- Overrides:
setVariablein classBaseStep
-
setVariableImpl
-
stopAll
public void stopAll()Description copied from interface:StepInterfaceFlags all rowsets as stopped/completed/finished.- Specified by:
stopAllin interfaceStepInterface- Overrides:
stopAllin classBaseStep
-
stopAllImpl
public void stopAllImpl() -
stopRunning
public void stopRunning(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) throws org.pentaho.di.core.exception.KettleException Description copied from class:BaseStepPerform actions to stop a running step. This can be stopping running SQL queries (cancel), etc. Default it doesn't do anything.- Specified by:
stopRunningin interfaceStepInterface- Overrides:
stopRunningin classBaseStep- Parameters:
stepMetaInterface- 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.- Throws:
org.pentaho.di.core.exception.KettleException- in case something goes wrong
-
stopRunningImpl
public void stopRunningImpl(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
toString
-
toStringImpl
-