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
public class UserDefinedJavaClass extends BaseStep implements StepInterface
-
-
Field Summary
Fields Modifier and Type Field Description protected UserDefinedJavaClassData
data
static String
KETTLE_DEFAULT_CLASS_CACHE_SIZE
protected UserDefinedJavaClassMeta
meta
-
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
Constructors Constructor Description UserDefinedJavaClass(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
cleanupImpl()
long
decrementLinesRead()
Decrements the number of lines read from previous steps by onelong
decrementLinesReadImpl()
long
decrementLinesWritten()
Decrements the number of lines written to next steps by onelong
decrementLinesWrittenImpl()
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
getClusterSize()
Returns the cluster size.int
getClusterSizeImpl()
int
getCopyImpl()
org.pentaho.di.core.row.RowMetaInterface
getErrorRowMeta()
org.pentaho.di.core.row.RowMetaInterface
getErrorRowMetaImpl()
long
getErrors()
Get the number of errorslong
getErrorsImpl()
org.pentaho.di.core.row.RowMetaInterface
getInputRowMeta()
org.pentaho.di.core.row.RowMetaInterface
getInputRowMetaImpl()
List<org.pentaho.di.core.RowSet>
getInputRowSets()
List<org.pentaho.di.core.RowSet>
getInputRowSetsImpl()
long
getLinesInput()
long
getLinesInputImpl()
long
getLinesOutput()
long
getLinesOutputImpl()
long
getLinesRead()
long
getLinesReadImpl()
long
getLinesRejected()
long
getLinesRejectedImpl()
long
getLinesSkipped()
long
getLinesSkippedImpl()
long
getLinesUpdated()
long
getLinesUpdatedImpl()
long
getLinesWritten()
long
getLinesWrittenImpl()
List<org.pentaho.di.core.RowSet>
getOutputRowSets()
List<org.pentaho.di.core.RowSet>
getOutputRowSetsImpl()
String
getPartitionID()
String
getPartitionIDImpl()
Map<String,org.pentaho.di.core.BlockingRowSet>
getPartitionTargets()
Map<String,org.pentaho.di.core.BlockingRowSet>
getPartitionTargetsImpl()
long
getProcessed()
long
getProcessedImpl()
int
getRepartitioning()
int
getRepartitioningImpl()
Map<String,org.pentaho.di.core.ResultFile>
getResultFiles()
Map<String,org.pentaho.di.core.ResultFile>
getResultFilesImpl()
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[]
getRowImpl()
List<RowListener>
getRowListeners()
List<RowListener>
getRowListenersImpl()
long
getRuntime()
long
getRuntimeImpl()
int
getSlaveNr()
Returns the unique slave number in the cluster.int
getSlaveNrImpl()
SocketRepository
getSocketRepository()
Retutns the socket repository.SocketRepository
getSocketRepositoryImpl()
BaseStepData.StepExecutionStatus
getStatus()
String
getStatusDescription()
Gets the status description.String
getStatusDescriptionImpl()
BaseStepData.StepExecutionStatus
getStatusImpl()
StepDataInterface
getStepDataInterface()
StepDataInterface
getStepDataInterfaceImpl()
String
getStepID()
String
getStepIDImpl()
List<StepListener>
getStepListeners()
Returns the step listeners.List<StepListener>
getStepListenersImpl()
StepMeta
getStepMeta()
StepMeta
getStepMetaImpl()
String
getStepname()
Get the name of the step.String
getStepnameImpl()
Trans
getTransImpl()
TransMeta
getTransMeta()
TransMeta
getTransMetaImpl()
String
getTypeId()
Returns the step ID via the getStepID() method call.String
getTypeIdImpl()
int
getUniqueStepCountAcrossSlaves()
Returns the number of unique steps across all slave servers.int
getUniqueStepCountAcrossSlavesImpl()
int
getUniqueStepNrAcrossSlaves()
Returns a unique step number across all slave servers: slaveNr * nrCopies + copyNr.int
getUniqueStepNrAcrossSlavesImpl()
String
getVariable(String variableName)
String
getVariable(String variableName, String defaultValue)
String
getVariableImpl(String variableName)
String
getVariableImpl(String variableName, String defaultValue)
long
incrementLinesInput()
Increments the number of lines read from an input source: database, file, socket, etc.long
incrementLinesInputImpl()
long
incrementLinesOutput()
Increments the number of lines written to an output target: database, file, socket, etc.long
incrementLinesOutputImpl()
long
incrementLinesRead()
Increments the number of lines read from previous steps by onelong
incrementLinesReadImpl()
long
incrementLinesRejected()
Increments the number of lines rejected to an error handling steplong
incrementLinesRejectedImpl()
long
incrementLinesSkipped()
Increments the number of lines skippedlong
incrementLinesSkippedImpl()
long
incrementLinesUpdated()
Increments the number of lines updated in an output target: database, file, socket, etc.long
incrementLinesUpdatedImpl()
long
incrementLinesWritten()
Increments the number of lines written to next steps by onelong
incrementLinesWrittenImpl()
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.void
initBeforeStartImpl()
boolean
initImpl(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
boolean
isDistributed()
boolean
isDistributedImpl()
boolean
isInitialising()
Checks if is initialising.boolean
isInitialisingImpl()
boolean
isPartitioned()
boolean
isPartitionedImpl()
boolean
isSafeModeEnabled()
boolean
isSafeModeEnabledImpl()
boolean
isStopped()
boolean
isStoppedImpl()
boolean
isUsingThreadPriorityManagment()
Retusn true if we are actively managing priorities of step threads.boolean
isUsingThreadPriorityManagmentImpl()
void
logBasic(String s)
Log basic.void
logBasicImpl(String s)
void
logDebug(String s)
Log debug.void
logDebugImpl(String s)
void
logDetailed(String s)
Log detailed.void
logDetailedImpl(String s)
void
logError(String s)
Log error.void
logError(String s, Throwable e)
Log error.void
logErrorImpl(String s)
void
logErrorImpl(String s, Throwable e)
void
logMinimal(String s)
Log minimal.void
logMinimalImpl(String s)
void
logRowlevel(String s)
Log rowlevel.void
logRowlevelImpl(String s)
void
logSummary()
Log summary.void
logSummaryImpl()
void
markStart()
Mark the start time of the step.void
markStartImpl()
void
markStop()
Mark the end time of the step.void
markStopImpl()
void
openRemoteInputStepSocketsOnce()
Opens socket connections to the remote input steps of this step.void
openRemoteInputStepSocketsOnceImpl()
void
openRemoteOutputStepSocketsOnce()
Opens socket connections to the remote output steps of this step.void
openRemoteOutputStepSocketsOnceImpl()
boolean
outputIsDone()
Output is done.boolean
outputIsDoneImpl()
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(org.pentaho.di.core.row.RowMetaInterface row, Object[] data)
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
rowsetInputSize()
int
rowsetInputSizeImpl()
int
rowsetOutputSize()
int
rowsetOutputSizeImpl()
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
setOutputDone()
Signal output done to destination stepsvoid
setOutputDoneImpl()
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
stopAllImpl()
void
stopRunning(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
Perform actions to stop a running step.void
stopRunningImpl(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
String
toString()
String
toStringImpl()
-
Methods inherited from class org.pentaho.di.trans.step.BaseStep
addRowSetToInputRowSets, addRowSetToOutputRowSets, batchComplete, 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, batchComplete, 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 Detail
-
meta
protected final UserDefinedJavaClassMeta meta
-
data
protected final UserDefinedJavaClassData data
-
KETTLE_DEFAULT_CLASS_CACHE_SIZE
public static final String KETTLE_DEFAULT_CLASS_CACHE_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
UserDefinedJavaClass
public UserDefinedJavaClass(StepMeta stepMeta, StepDataInterface stepDataInterface, int copyNr, TransMeta transMeta, Trans trans)
-
-
Method Detail
-
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
public void addRowListener(RowListener rowListener)
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
public void addRowListenerImpl(RowListener rowListener)
-
addStepListener
public void addStepListener(StepListener stepListener)
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
public void addStepListenerImpl(StepListener stepListener)
-
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
public void dispose(StepMetaInterface smi, StepDataInterface sdi)
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
public void disposeImpl(StepMetaInterface smi, StepDataInterface sdi)
-
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
public org.pentaho.di.core.RowSet findInputRowSet(String from, int fromcopy, String to, int tocopy)
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
public org.pentaho.di.core.RowSet findInputRowSetImpl(String from, int fromcopy, String to, int tocopy)
-
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
public org.pentaho.di.core.RowSet findOutputRowSetImpl(String from, int fromcopy, String to, int tocopy)
-
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
public List<org.pentaho.di.core.RowSet> getInputRowSets()
- Specified by:
getInputRowSets
in interfaceStepInterface
- Overrides:
getInputRowSets
in classBaseStep
- Returns:
- Returns the inputRowSets.
-
getInputRowSetsImpl
public List<org.pentaho.di.core.RowSet> 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
public List<org.pentaho.di.core.RowSet> getOutputRowSets()
- Specified by:
getOutputRowSets
in interfaceStepInterface
- Overrides:
getOutputRowSets
in classBaseStep
- Returns:
- Returns the outputRowSets.
-
getOutputRowSetsImpl
public List<org.pentaho.di.core.RowSet> getOutputRowSetsImpl()
-
getPartitionID
public String getPartitionID()
- Specified by:
getPartitionID
in interfaceStepInterface
- Overrides:
getPartitionID
in classBaseStep
- Returns:
- the partitionID
-
getPartitionIDImpl
public String getPartitionIDImpl()
-
getPartitionTargets
public Map<String,org.pentaho.di.core.BlockingRowSet> getPartitionTargets()
- Overrides:
getPartitionTargets
in classBaseStep
- Returns:
- the partitionTargets
-
getPartitionTargetsImpl
public Map<String,org.pentaho.di.core.BlockingRowSet> 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
public Map<String,org.pentaho.di.core.ResultFile> getResultFiles()
- Specified by:
getResultFiles
in interfaceStepInterface
- Overrides:
getResultFiles
in classBaseStep
- Returns:
- The result files for this step
-
getRow
public Object[] getRow() throws org.pentaho.di.core.exception.KettleException
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
public Object[] getRowImpl() throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
-
getRowListeners
public List<RowListener> getRowListeners()
- Specified by:
getRowListeners
in interfaceStepInterface
- Overrides:
getRowListeners
in classBaseStep
- Returns:
- a list of the installed RowListeners
-
getRowListenersImpl
public List<RowListener> 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
public SocketRepository getSocketRepository()
Description copied from class:BaseStep
Retutns the socket repository.- Overrides:
getSocketRepository
in classBaseStep
- Returns:
- the socketRepository
-
getSocketRepositoryImpl
public SocketRepository getSocketRepositoryImpl()
-
getStatus
public BaseStepData.StepExecutionStatus getStatus()
- Specified by:
getStatus
in interfaceStepInterface
- Overrides:
getStatus
in classBaseStep
- Returns:
- the description as in
StepDataInterface
-
getStatusDescription
public String getStatusDescription()
Description copied from class:BaseStep
Gets the status description.- Overrides:
getStatusDescription
in classBaseStep
- Returns:
- the status description
-
getStatusDescriptionImpl
public String getStatusDescriptionImpl()
-
getStatusImpl
public BaseStepData.StepExecutionStatus getStatusImpl()
-
getStepDataInterface
public StepDataInterface getStepDataInterface()
- Overrides:
getStepDataInterface
in classBaseStep
- Returns:
- Returns the stepDataInterface.
-
getStepDataInterfaceImpl
public StepDataInterface getStepDataInterfaceImpl()
-
getStepID
public String getStepID()
- Specified by:
getStepID
in interfaceStepInterface
- Overrides:
getStepID
in classBaseStep
- Returns:
- the type ID of the step...
-
getStepIDImpl
public String getStepIDImpl()
-
getStepListeners
public List<StepListener> getStepListeners()
Description copied from class:BaseStep
Returns the step listeners.- Overrides:
getStepListeners
in classBaseStep
- Returns:
- the stepListeners
-
getStepListenersImpl
public List<StepListener> getStepListenersImpl()
-
getStepMeta
public StepMeta getStepMeta()
- Specified by:
getStepMeta
in interfaceStepInterface
- Overrides:
getStepMeta
in classBaseStep
- Returns:
- Returns the stepMeta.
-
getStepMetaImpl
public StepMeta getStepMetaImpl()
-
getStepname
public String 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
public String getStepnameImpl()
-
getTransImpl
public Trans getTransImpl()
-
getTransMeta
public TransMeta getTransMeta()
- Overrides:
getTransMeta
in classBaseStep
- Returns:
- Returns the transMeta.
-
getTransMetaImpl
public TransMeta getTransMetaImpl()
-
getTypeId
public String getTypeId()
Description copied from class:BaseStep
Returns the step ID via the getStepID() method call. Support for CheckResultSourceInterface.
-
getTypeIdImpl
public String 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
public String getVariable(String variableName)
- Specified by:
getVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
- Overrides:
getVariable
in classBaseStep
-
getVariable
public String getVariable(String variableName, String defaultValue)
- Specified by:
getVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
- Overrides:
getVariable
in classBaseStep
-
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
public boolean init(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
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.KettleStepException
Description 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
public boolean initImpl(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
-
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()
-
logBasicImpl
public void logBasicImpl(String s)
-
logDebugImpl
public void logDebugImpl(String s)
-
logDetailed
public void logDetailed(String s)
Description copied from class:BaseStep
Log detailed.- Overrides:
logDetailed
in classBaseStep
- Parameters:
s
- the message
-
logDetailedImpl
public void logDetailedImpl(String s)
-
logError
public void logError(String s, Throwable e)
Description copied from class:BaseStep
Log error.
-
logErrorImpl
public void logErrorImpl(String s)
-
logMinimal
public void logMinimal(String s)
Description copied from class:BaseStep
Log minimal.- Overrides:
logMinimal
in classBaseStep
- Parameters:
s
- the message
-
logMinimalImpl
public void logMinimalImpl(String s)
-
logRowlevel
public void logRowlevel(String s)
Description copied from class:BaseStep
Log rowlevel.- Overrides:
logRowlevel
in classBaseStep
- Parameters:
s
- the message
-
logRowlevelImpl
public void logRowlevelImpl(String s)
-
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.KettleStepException
Description 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.KettleStepException
Description 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
public void removeRowListener(RowListener rowListener)
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
public void removeRowListenerImpl(RowListener rowListener)
-
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
public void setInputRowSets(List<org.pentaho.di.core.RowSet> inputRowSets)
- Overrides:
setInputRowSets
in classBaseStep
- Parameters:
inputRowSets
- The inputRowSets to set.
-
setInputRowSetsImpl
public void setInputRowSetsImpl(List<org.pentaho.di.core.RowSet> inputRowSets)
-
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
public void setOutputRowSets(List<org.pentaho.di.core.RowSet> outputRowSets)
- Overrides:
setOutputRowSets
in classBaseStep
- Parameters:
outputRowSets
- The outputRowSets to set.
-
setOutputRowSetsImpl
public void setOutputRowSetsImpl(List<org.pentaho.di.core.RowSet> outputRowSets)
-
setStepListeners
public void setStepListeners(List<StepListener> stepListeners)
Description copied from class:BaseStep
Sets the step listeners.- Overrides:
setStepListeners
in classBaseStep
- Parameters:
stepListeners
- the stepListeners to set
-
setStepListenersImpl
public void setStepListenersImpl(List<StepListener> stepListeners)
-
setVariable
public void setVariable(String variableName, String variableValue)
- Specified by:
setVariable
in interfaceorg.pentaho.di.core.variables.VariableSpace
- Overrides:
setVariable
in classBaseStep
-
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
-
toStringImpl
public String toStringImpl()
-
-