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 UserDefinedJavaClassData
static final String
protected final UserDefinedJavaClassMeta
Fields 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 TypeMethodDescriptionvoid
addResultFile
(org.pentaho.di.core.ResultFile resultFile) Adds the result file.void
addResultFileImpl
(org.pentaho.di.core.ResultFile resultFile) 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
addRowListenerImpl
(RowListener rowListener) void
addStepListener
(StepListener stepListener) Attach a step listener to be notified when a step arrives in a certain state.void
addStepListenerImpl
(StepListener stepListener) boolean
checkFeedback
(long lines) Check feedback.boolean
checkFeedbackImpl
(long lines) void
cleanup()
Call this method typically, after ALL the slave transformations in a clustered run have finished.void
long
Decrements the number of lines read from previous steps by onelong
long
Decrements the number of lines written to next steps by onelong
void
dispose
(StepMetaInterface smi, StepDataInterface sdi) Dispose of this step: close files, empty logs, etc.void
disposeImpl
(StepMetaInterface smi, StepDataInterface sdi) org.pentaho.di.core.RowSet
findInputRowSet
(String sourceStep) Find input row set.org.pentaho.di.core.RowSet
findInputRowSet
(String from, int fromcopy, String to, int tocopy) Find input row set.org.pentaho.di.core.RowSet
findInputRowSetImpl
(String sourceStep) org.pentaho.di.core.RowSet
findInputRowSetImpl
(String from, int fromcopy, String to, int tocopy) org.pentaho.di.core.RowSet
findOutputRowSet
(String targetStep) Find output row set.org.pentaho.di.core.RowSet
findOutputRowSet
(String from, int fromcopy, String to, int tocopy) Find an output rowset in a running transformation.org.pentaho.di.core.RowSet
findOutputRowSetImpl
(String targetStep) org.pentaho.di.core.RowSet
findOutputRowSetImpl
(String from, int fromcopy, String to, int tocopy) int
Returns the cluster size.int
int
org.pentaho.di.core.row.RowMetaInterface
org.pentaho.di.core.row.RowMetaInterface
long
Get the number of errorslong
org.pentaho.di.core.row.RowMetaInterface
org.pentaho.di.core.row.RowMetaInterface
List<org.pentaho.di.core.RowSet>
List<org.pentaho.di.core.RowSet>
long
long
long
long
long
long
long
long
long
long
long
long
long
long
List<org.pentaho.di.core.RowSet>
List<org.pentaho.di.core.RowSet>
long
long
int
int
Object[]
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[]
long
long
int
Returns the unique slave number in the cluster.int
Retutns 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.int
Returns the number of unique steps across all slave servers.int
int
Returns a unique step number across all slave servers: slaveNr * nrCopies + copyNr.int
getVariable
(String variableName) getVariable
(String variableName, String defaultValue) getVariableImpl
(String variableName) getVariableImpl
(String variableName, String defaultValue) long
Increments the number of lines read from an input source: database, file, socket, etc.long
long
Increments the number of lines written to an output target: database, file, socket, etc.long
long
Increments the number of lines read from previous steps by onelong
long
Increments the number of lines rejected to an error handling steplong
long
Increments the number of lines skippedlong
long
Increments the number of lines updated in an output target: database, file, socket, etc.long
long
Increments the number of lines written to next steps by onelong
boolean
init
(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) Initialize and do work where other steps need to wait for...void
This method is executed by Trans right before the threads start and right after initialization.void
boolean
initImpl
(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) boolean
boolean
boolean
Checks if is initialising.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
Retusn true if we are actively managing priorities of step threads.boolean
void
Log basic.void
void
Log debug.void
void
Log detailed.void
void
Log error.void
Log error.void
void
logErrorImpl
(String s, Throwable e) void
logMinimal
(String s) Log minimal.void
void
Log rowlevel.void
void
Log summary.void
void
Mark the start time of the step.void
void
markStop()
Mark the end time of the step.void
void
Opens socket connections to the remote input steps of this step.void
void
Opens socket connections to the remote output steps of this step.void
boolean
Output is done.boolean
boolean
processRow
(StepMetaInterface smi, StepDataInterface sdi) Perform the equivalent of processing one row.void
putError
(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) Put error.void
putErrorImpl
(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) void
putRow 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!void
putRowImpl
(org.pentaho.di.core.row.RowMetaInterface row, Object[] data) void
putRowTo
(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.void
putRowToImpl
(org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] row, org.pentaho.di.core.RowSet rowSet) void
removeRowListener
(RowListener rowListener) Remove a rowlistener from this step.void
removeRowListenerImpl
(RowListener rowListener) int
int
int
int
void
safeModeChecking
(org.pentaho.di.core.row.RowMetaInterface row) Safe mode checking.void
safeModeCheckingImpl
(org.pentaho.di.core.row.RowMetaInterface row) void
setErrors
(long errors) Sets the number of errorsvoid
setErrorsImpl
(long errors) void
setInputRowMeta
(org.pentaho.di.core.row.RowMetaInterface rowMeta) void
setInputRowMetaImpl
(org.pentaho.di.core.row.RowMetaInterface rowMeta) void
setInputRowSets
(List<org.pentaho.di.core.RowSet> inputRowSets) void
setInputRowSetsImpl
(List<org.pentaho.di.core.RowSet> inputRowSets) void
setLinesInput
(long newLinesInputValue) void
setLinesInputImpl
(long newLinesInputValue) void
setLinesOutput
(long newLinesOutputValue) void
setLinesOutputImpl
(long newLinesOutputValue) void
setLinesRead
(long newLinesReadValue) void
setLinesReadImpl
(long newLinesReadValue) void
setLinesRejected
(long linesRejected) void
setLinesRejectedImpl
(long linesRejected) void
setLinesSkipped
(long newLinesSkippedValue) void
setLinesSkippedImpl
(long newLinesSkippedValue) void
setLinesUpdated
(long newLinesUpdatedValue) void
setLinesUpdatedImpl
(long newLinesUpdatedValue) void
setLinesWritten
(long newLinesWrittenValue) void
setLinesWrittenImpl
(long newLinesWrittenValue) void
Signal output done to destination stepsvoid
void
setOutputRowSets
(List<org.pentaho.di.core.RowSet> outputRowSets) void
setOutputRowSetsImpl
(List<org.pentaho.di.core.RowSet> outputRowSets) void
setStepListeners
(List<StepListener> stepListeners) Sets the step listeners.void
setStepListenersImpl
(List<StepListener> stepListeners) void
setVariable
(String variableName, String variableValue) void
setVariableImpl
(String variableName, String variableValue) void
stopAll()
Flags all rowsets as stopped/completed/finished.void
void
stopRunning
(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) Perform actions to stop a running step.void
stopRunningImpl
(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, waitUntilTransformationIsStarted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.pentaho.di.core.logging.LoggingObjectLifecycleInterface
callAfterLog, callBeforeLog
Methods 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, subStatuses
Methods 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:BaseStep
Adds the result file.- Overrides:
addResultFile
in classBaseStep
- Parameters:
resultFile
- the result file
-
addResultFileImpl
public void addResultFileImpl(org.pentaho.di.core.ResultFile resultFile) -
addRowListener
Description copied from interface:StepInterface
Add a rowlistener to the step allowing you to inspect (or manipulate, be careful) the rows coming in or exiting the step.- Specified by:
addRowListener
in interfaceStepInterface
- Overrides:
addRowListener
in classBaseStep
- Parameters:
rowListener
- the rowlistener to add
-
addRowListenerImpl
-
addStepListener
Description copied from interface:StepInterface
Attach a step listener to be notified when a step arrives in a certain state. (finished)- Specified by:
addStepListener
in interfaceStepInterface
- Overrides:
addStepListener
in classBaseStep
- Parameters:
stepListener
- The listener to add to the step
-
addStepListenerImpl
-
checkFeedback
public boolean checkFeedback(long lines) Description copied from class:BaseStep
Check feedback.- Overrides:
checkFeedback
in classBaseStep
- Parameters:
lines
- the lines- Returns:
- true, if successful
-
checkFeedbackImpl
public boolean checkFeedbackImpl(long lines) -
cleanup
public void cleanup()Description copied from interface:StepInterface
Call this method typically, after ALL the slave transformations in a clustered run have finished.- Specified by:
cleanup
in interfaceStepInterface
- Overrides:
cleanup
in classBaseStep
-
cleanupImpl
public void cleanupImpl() -
decrementLinesRead
public long decrementLinesRead()Description copied from class:BaseStep
Decrements the number of lines read from previous steps by one- Overrides:
decrementLinesRead
in classBaseStep
- Returns:
- Returns the new value
-
decrementLinesReadImpl
public long decrementLinesReadImpl() -
decrementLinesWritten
public long decrementLinesWritten()Description copied from class:BaseStep
Decrements the number of lines written to next steps by one- Overrides:
decrementLinesWritten
in classBaseStep
- Returns:
- Returns the new value
-
decrementLinesWrittenImpl
public long decrementLinesWrittenImpl() -
dispose
Description copied from interface:StepInterface
Dispose of this step: close files, empty logs, etc.- Specified by:
dispose
in interfaceStepInterface
- Overrides:
dispose
in 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:BaseStep
Find input row set.- Overrides:
findInputRowSet
in 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:BaseStep
Find input row set.- Overrides:
findInputRowSet
in 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:BaseStep
Find output row set.- Overrides:
findOutputRowSet
in 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:BaseStep
Find 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:
findOutputRowSet
in 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:BaseStep
Returns the cluster size.- Overrides:
getClusterSize
in classBaseStep
- Returns:
- the cluster size
-
getClusterSizeImpl
public int getClusterSizeImpl() -
getCopyImpl
public int getCopyImpl() -
getErrorRowMeta
public org.pentaho.di.core.row.RowMetaInterface getErrorRowMeta()- Overrides:
getErrorRowMeta
in classBaseStep
- Returns:
- the errorRowMeta
-
getErrorRowMetaImpl
public org.pentaho.di.core.row.RowMetaInterface getErrorRowMetaImpl() -
getErrors
public long getErrors()Description copied from interface:StepInterface
Get the number of errors- Specified by:
getErrors
in interfaceStepInterface
- Overrides:
getErrors
in classBaseStep
- Returns:
- the number of errors
-
getErrorsImpl
public long getErrorsImpl() -
getInputRowMeta
public org.pentaho.di.core.row.RowMetaInterface getInputRowMeta()- Overrides:
getInputRowMeta
in classBaseStep
- Returns:
- the rowMeta
-
getInputRowMetaImpl
public org.pentaho.di.core.row.RowMetaInterface getInputRowMetaImpl() -
getInputRowSets
- Specified by:
getInputRowSets
in interfaceStepInterface
- Overrides:
getInputRowSets
in classBaseStep
- Returns:
- Returns the inputRowSets.
-
getInputRowSetsImpl
-
getLinesInput
public long getLinesInput()- Specified by:
getLinesInput
in interfaceStepInterface
- Overrides:
getLinesInput
in 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:
getLinesOutput
in interfaceStepInterface
- Overrides:
getLinesOutput
in 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:
getLinesRead
in interfaceStepInterface
- Overrides:
getLinesRead
in classBaseStep
- Returns:
- Returns the number of lines read from previous steps
-
getLinesReadImpl
public long getLinesReadImpl() -
getLinesRejected
public long getLinesRejected()- Specified by:
getLinesRejected
in interfaceStepInterface
- Overrides:
getLinesRejected
in classBaseStep
- Returns:
- the number of lines rejected to an error handling step
-
getLinesRejectedImpl
public long getLinesRejectedImpl() -
getLinesSkipped
public long getLinesSkipped()- Overrides:
getLinesSkipped
in classBaseStep
- Returns:
- the number of lines skipped
-
getLinesSkippedImpl
public long getLinesSkippedImpl() -
getLinesUpdated
public long getLinesUpdated()- Specified by:
getLinesUpdated
in interfaceStepInterface
- Overrides:
getLinesUpdated
in 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:
getLinesWritten
in interfaceStepInterface
- Overrides:
getLinesWritten
in classBaseStep
- Returns:
- Returns the linesWritten.
-
getLinesWrittenImpl
public long getLinesWrittenImpl() -
getOutputRowSets
- Specified by:
getOutputRowSets
in interfaceStepInterface
- Overrides:
getOutputRowSets
in classBaseStep
- Returns:
- Returns the outputRowSets.
-
getOutputRowSetsImpl
-
getPartitionID
- Specified by:
getPartitionID
in interfaceStepInterface
- Overrides:
getPartitionID
in classBaseStep
- Returns:
- the partitionID
-
getPartitionIDImpl
-
getPartitionTargets
- Overrides:
getPartitionTargets
in classBaseStep
- Returns:
- the partitionTargets
-
getPartitionTargetsImpl
-
getProcessed
public long getProcessed()- Specified by:
getProcessed
in interfaceStepInterface
- Overrides:
getProcessed
in 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:
getRepartitioning
in classBaseStep
- Returns:
- the repartitioning type
-
getRepartitioningImpl
public int getRepartitioningImpl() -
getResultFiles
- Specified by:
getResultFiles
in interfaceStepInterface
- Overrides:
getResultFiles
in classBaseStep
- Returns:
- The result files for this step
-
getResultFilesImpl
-
getRow
Description copied from class:BaseStep
In 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:
getRow
in interfaceStepInterface
- Overrides:
getRow
in 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:BaseStep
Gets the row from.- Overrides:
getRowFrom
in 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:
getRowListeners
in interfaceStepInterface
- Overrides:
getRowListeners
in classBaseStep
- Returns:
- a list of the installed RowListeners
-
getRowListenersImpl
-
getRuntime
public long getRuntime()- Specified by:
getRuntime
in interfaceStepInterface
- Overrides:
getRuntime
in classBaseStep
- Returns:
- The number of ms that this step has been running
-
getRuntimeImpl
public long getRuntimeImpl() -
getSlaveNr
public int getSlaveNr()Description copied from class:BaseStep
Returns the unique slave number in the cluster.- Overrides:
getSlaveNr
in classBaseStep
- Returns:
- the unique slave number in the cluster
-
getSlaveNrImpl
public int getSlaveNrImpl() -
getSocketRepository
Description copied from class:BaseStep
Retutns the socket repository.- Overrides:
getSocketRepository
in classBaseStep
- Returns:
- the socketRepository
-
getSocketRepositoryImpl
-
getStatus
- Specified by:
getStatus
in interfaceStepInterface
- Overrides:
getStatus
in classBaseStep
- Returns:
- the description as in
StepDataInterface
-
getStatusDescription
Description copied from class:BaseStep
Gets the status description.- Overrides:
getStatusDescription
in classBaseStep
- Returns:
- the status description
-
getStatusDescriptionImpl
-
getStatusImpl
-
getStepDataInterface
- Overrides:
getStepDataInterface
in classBaseStep
- Returns:
- Returns the stepDataInterface.
-
getStepDataInterfaceImpl
-
getStepID
- Specified by:
getStepID
in interfaceStepInterface
- Overrides:
getStepID
in classBaseStep
- Returns:
- the type ID of the step...
-
getStepIDImpl
-
getStepListeners
Description copied from class:BaseStep
Returns the step listeners.- Overrides:
getStepListeners
in classBaseStep
- Returns:
- the stepListeners
-
getStepListenersImpl
-
getStepMeta
- Specified by:
getStepMeta
in interfaceStepInterface
- Overrides:
getStepMeta
in classBaseStep
- Returns:
- Returns the stepMeta.
-
getStepMetaImpl
-
getStepname
Description copied from interface:StepInterface
Get the name of the step.- Specified by:
getStepname
in interfaceStepInterface
- Overrides:
getStepname
in classBaseStep
- Returns:
- the name of the step
-
getStepnameImpl
-
getTransImpl
-
getTransMeta
- Overrides:
getTransMeta
in classBaseStep
- Returns:
- Returns the transMeta.
-
getTransMetaImpl
-
getTypeId
Description copied from class:BaseStep
Returns the step ID via the getStepID() method call. Support for CheckResultSourceInterface. -
getTypeIdImpl
-
getUniqueStepCountAcrossSlaves
public int getUniqueStepCountAcrossSlaves()Description copied from class:BaseStep
Returns the number of unique steps across all slave servers.- Overrides:
getUniqueStepCountAcrossSlaves
in classBaseStep
- Returns:
- the number of unique steps across all slave servers
-
getUniqueStepCountAcrossSlavesImpl
public int getUniqueStepCountAcrossSlavesImpl() -
getUniqueStepNrAcrossSlaves
public int getUniqueStepNrAcrossSlaves()Description copied from class:BaseStep
Returns a unique step number across all slave servers: slaveNr * nrCopies + copyNr.- Overrides:
getUniqueStepNrAcrossSlaves
in classBaseStep
- Returns:
- a unique step number across all slave servers: slaveNr * nrCopies + copyNr
-
getUniqueStepNrAcrossSlavesImpl
public int getUniqueStepNrAcrossSlavesImpl() -
getVariable
- Specified by:
getVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
- Overrides:
getVariable
in classBaseStep
-
getVariable
- Specified by:
getVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
- Overrides:
getVariable
in classBaseStep
-
getVariableImpl
-
getVariableImpl
-
incrementLinesInput
public long incrementLinesInput()Description copied from class:BaseStep
Increments the number of lines read from an input source: database, file, socket, etc.- Overrides:
incrementLinesInput
in classBaseStep
- Returns:
- the new incremented value
-
incrementLinesInputImpl
public long incrementLinesInputImpl() -
incrementLinesOutput
public long incrementLinesOutput()Description copied from class:BaseStep
Increments the number of lines written to an output target: database, file, socket, etc.- Overrides:
incrementLinesOutput
in classBaseStep
- Returns:
- the new incremented value
-
incrementLinesOutputImpl
public long incrementLinesOutputImpl() -
incrementLinesRead
public long incrementLinesRead()Description copied from class:BaseStep
Increments the number of lines read from previous steps by one- Overrides:
incrementLinesRead
in classBaseStep
- Returns:
- Returns the new value
-
incrementLinesReadImpl
public long incrementLinesReadImpl() -
incrementLinesRejected
public long incrementLinesRejected()Description copied from class:BaseStep
Increments the number of lines rejected to an error handling step- Overrides:
incrementLinesRejected
in classBaseStep
- Returns:
- the new incremented value
-
incrementLinesRejectedImpl
public long incrementLinesRejectedImpl() -
incrementLinesSkipped
public long incrementLinesSkipped()Description copied from class:BaseStep
Increments the number of lines skipped- Overrides:
incrementLinesSkipped
in classBaseStep
- Returns:
- the new incremented value
-
incrementLinesSkippedImpl
public long incrementLinesSkippedImpl() -
incrementLinesUpdated
public long incrementLinesUpdated()Description copied from class:BaseStep
Increments the number of lines updated in an output target: database, file, socket, etc.- Overrides:
incrementLinesUpdated
in classBaseStep
- Returns:
- the new incremented value
-
incrementLinesUpdatedImpl
public long incrementLinesUpdatedImpl() -
incrementLinesWritten
public long incrementLinesWritten()Description copied from class:BaseStep
Increments the number of lines written to next steps by one- Overrides:
incrementLinesWritten
in classBaseStep
- Returns:
- Returns the new value
-
incrementLinesWrittenImpl
public long incrementLinesWrittenImpl() -
init
Description copied from interface:StepInterface
Initialize and do work where other steps need to wait for...- Specified by:
init
in interfaceStepInterface
- Overrides:
init
in 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:BaseStep
This 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:
initBeforeStart
in interfaceStepInterface
- Overrides:
initBeforeStart
in 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:
isDistributed
in classBaseStep
- Returns:
- Returns the distributed.
-
isDistributedImpl
public boolean isDistributedImpl() -
isInitialising
public boolean isInitialising()Description copied from class:BaseStep
Checks if is initialising.- Overrides:
isInitialising
in classBaseStep
- Returns:
- true, if is initialising
-
isInitialisingImpl
public boolean isInitialisingImpl() -
isPartitioned
public boolean isPartitioned()- Specified by:
isPartitioned
in interfaceStepInterface
- Overrides:
isPartitioned
in classBaseStep
- Returns:
- the partitioned
-
isPartitionedImpl
public boolean isPartitionedImpl() -
isSafeModeEnabled
public boolean isSafeModeEnabled() -
isSafeModeEnabledImpl
public boolean isSafeModeEnabledImpl() -
isStopped
public boolean isStopped()- Specified by:
isStopped
in interfaceStepInterface
- Overrides:
isStopped
in 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:BaseStep
Retusn true if we are actively managing priorities of step threads.- Specified by:
isUsingThreadPriorityManagment
in interfaceStepInterface
- Overrides:
isUsingThreadPriorityManagment
in classBaseStep
- Returns:
- true if we are actively managing priorities of step threads
-
isUsingThreadPriorityManagmentImpl
public boolean isUsingThreadPriorityManagmentImpl() -
logBasic
Description copied from class:BaseStep
Log basic. -
logBasicImpl
-
logDebug
Description copied from class:BaseStep
Log debug. -
logDebugImpl
-
logDetailed
Description copied from class:BaseStep
Log detailed.- Overrides:
logDetailed
in classBaseStep
- Parameters:
s
- the message
-
logDetailedImpl
-
logError
Description copied from class:BaseStep
Log error. -
logError
Description copied from class:BaseStep
Log error. -
logErrorImpl
-
logErrorImpl
-
logMinimal
Description copied from class:BaseStep
Log minimal.- Overrides:
logMinimal
in classBaseStep
- Parameters:
s
- the message
-
logMinimalImpl
-
logRowlevel
Description copied from class:BaseStep
Log rowlevel.- Overrides:
logRowlevel
in classBaseStep
- Parameters:
s
- the message
-
logRowlevelImpl
-
logSummary
public void logSummary()Description copied from class:BaseStep
Log summary.- Overrides:
logSummary
in classBaseStep
-
logSummaryImpl
public void logSummaryImpl() -
markStart
public void markStart()Description copied from interface:StepInterface
Mark the start time of the step.- Specified by:
markStart
in interfaceStepInterface
- Overrides:
markStart
in classBaseStep
-
markStartImpl
public void markStartImpl() -
markStop
public void markStop()Description copied from interface:StepInterface
Mark the end time of the step.- Specified by:
markStop
in interfaceStepInterface
- Overrides:
markStop
in classBaseStep
-
markStopImpl
public void markStopImpl() -
openRemoteInputStepSocketsOnce
public void openRemoteInputStepSocketsOnce() throws org.pentaho.di.core.exception.KettleStepExceptionDescription copied from class:BaseStep
Opens 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:
openRemoteInputStepSocketsOnce
in 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:BaseStep
Opens 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:
openRemoteOutputStepSocketsOnce
in 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:BaseStep
Output is done.- Overrides:
outputIsDone
in 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:StepInterface
Perform the equivalent of processing one row. Typically this means reading a row from input (getRow()) and passing a row to output (putRow)).- Specified by:
processRow
in interfaceStepInterface
- Overrides:
processRow
in 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:BaseStep
Put 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:BaseStep
putRow 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:
putRow
in interfaceStepInterface
- Overrides:
putRow
in 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:BaseStep
putRowTo 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:StepInterface
Remove a rowlistener from this step.- Specified by:
removeRowListener
in interfaceStepInterface
- Overrides:
removeRowListener
in classBaseStep
- Parameters:
rowListener
- the rowlistener to remove
-
removeRowListenerImpl
-
rowsetInputSize
public int rowsetInputSize()- Specified by:
rowsetInputSize
in interfaceStepInterface
- Overrides:
rowsetInputSize
in classBaseStep
- Returns:
- The total amount of rows in the input buffers
-
rowsetInputSizeImpl
public int rowsetInputSizeImpl() -
rowsetOutputSize
public int rowsetOutputSize()- Specified by:
rowsetOutputSize
in interfaceStepInterface
- Overrides:
rowsetOutputSize
in 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:BaseStep
Safe mode checking.- Overrides:
safeModeChecking
in 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:StepInterface
Sets the number of errors- Specified by:
setErrors
in interfaceStepInterface
- Overrides:
setErrors
in 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:
setInputRowMeta
in classBaseStep
- Parameters:
rowMeta
- the rowMeta to set
-
setInputRowMetaImpl
public void setInputRowMetaImpl(org.pentaho.di.core.row.RowMetaInterface rowMeta) -
setInputRowSets
- Overrides:
setInputRowSets
in classBaseStep
- Parameters:
inputRowSets
- The inputRowSets to set.
-
setInputRowSetsImpl
-
setLinesInput
public void setLinesInput(long newLinesInputValue) - Overrides:
setLinesInput
in 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:
setLinesOutput
in 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:
setLinesRead
in 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:
setLinesRejected
in interfaceStepInterface
- Overrides:
setLinesRejected
in 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:
setLinesSkipped
in classBaseStep
- Parameters:
newLinesSkippedValue
- lines number of lines skipped
-
setLinesSkippedImpl
public void setLinesSkippedImpl(long newLinesSkippedValue) -
setLinesUpdated
public void setLinesUpdated(long newLinesUpdatedValue) - Overrides:
setLinesUpdated
in 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:
setLinesWritten
in 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:StepInterface
Signal output done to destination steps- Specified by:
setOutputDone
in interfaceStepInterface
- Overrides:
setOutputDone
in classBaseStep
-
setOutputDoneImpl
public void setOutputDoneImpl() -
setOutputRowSets
- Overrides:
setOutputRowSets
in classBaseStep
- Parameters:
outputRowSets
- The outputRowSets to set.
-
setOutputRowSetsImpl
-
setStepListeners
Description copied from class:BaseStep
Sets the step listeners.- Overrides:
setStepListeners
in classBaseStep
- Parameters:
stepListeners
- the stepListeners to set
-
setStepListenersImpl
-
setVariable
- Specified by:
setVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
- Overrides:
setVariable
in classBaseStep
-
setVariableImpl
-
stopAll
public void stopAll()Description copied from interface:StepInterface
Flags all rowsets as stopped/completed/finished.- Specified by:
stopAll
in interfaceStepInterface
- Overrides:
stopAll
in classBaseStep
-
stopAllImpl
public void stopAllImpl() -
stopRunning
public void stopRunning(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) throws org.pentaho.di.core.exception.KettleException Description copied from class:BaseStep
Perform actions to stop a running step. This can be stopping running SQL queries (cancel), etc. Default it doesn't do anything.- Specified by:
stopRunning
in interfaceStepInterface
- Overrides:
stopRunning
in 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
-