Class ScriptValuesDummy

  • All Implemented Interfaces:
    IExtensionData, IHasLogChannel, IVariables, org.apache.hop.pipeline.engine.IEngineComponent, org.apache.hop.pipeline.transform.ITransform

    public class ScriptValuesDummy
    extends Object
    implements org.apache.hop.pipeline.transform.ITransform
    Dummy class used for test().
    • Constructor Detail

      • ScriptValuesDummy

        public ScriptValuesDummy​(IRowMeta inputRowMeta,
                                 IRowMeta outputRowMeta)
    • Method Detail

      • processRow

        public boolean processRow()
                           throws HopException
        Specified by:
        processRow in interface org.apache.hop.pipeline.transform.ITransform
        Throws:
        HopException
      • addRowListener

        public void addRowListener​(org.apache.hop.pipeline.transform.IRowListener rowListener)
        Specified by:
        addRowListener in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        addRowListener in interface org.apache.hop.pipeline.transform.ITransform
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.apache.hop.pipeline.transform.ITransform
      • getErrors

        public long getErrors()
        Specified by:
        getErrors in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getErrors in interface org.apache.hop.pipeline.transform.ITransform
      • getInputRowSets

        public List<IRowSet> getInputRowSets()
        Specified by:
        getInputRowSets in interface org.apache.hop.pipeline.transform.ITransform
      • getLinesInput

        public long getLinesInput()
        Specified by:
        getLinesInput in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getLinesInput in interface org.apache.hop.pipeline.transform.ITransform
      • getLinesOutput

        public long getLinesOutput()
        Specified by:
        getLinesOutput in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getLinesOutput in interface org.apache.hop.pipeline.transform.ITransform
      • getLinesRead

        public long getLinesRead()
        Specified by:
        getLinesRead in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getLinesRead in interface org.apache.hop.pipeline.transform.ITransform
      • getLinesUpdated

        public long getLinesUpdated()
        Specified by:
        getLinesUpdated in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getLinesUpdated in interface org.apache.hop.pipeline.transform.ITransform
      • getStatusDescription

        public String getStatusDescription()
        Specified by:
        getStatusDescription in interface org.apache.hop.pipeline.engine.IEngineComponent
      • getLinesWritten

        public long getLinesWritten()
        Specified by:
        getLinesWritten in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getLinesWritten in interface org.apache.hop.pipeline.transform.ITransform
      • getLinesRejected

        public long getLinesRejected()
        Specified by:
        getLinesRejected in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getLinesRejected in interface org.apache.hop.pipeline.transform.ITransform
      • getOutputRowSets

        public List<IRowSet> getOutputRowSets()
        Specified by:
        getOutputRowSets in interface org.apache.hop.pipeline.transform.ITransform
      • getPartitionID

        public String getPartitionID()
      • getRow

        public Object[] getRow()
                        throws HopException
        Specified by:
        getRow in interface org.apache.hop.pipeline.transform.ITransform
        Throws:
        HopException
      • getRowListeners

        public List<org.apache.hop.pipeline.transform.IRowListener> getRowListeners()
        Specified by:
        getRowListeners in interface org.apache.hop.pipeline.transform.ITransform
      • getTransformPluginId

        public String getTransformPluginId()
        Specified by:
        getTransformPluginId in interface org.apache.hop.pipeline.transform.ITransform
      • getTransformName

        public String getTransformName()
        Specified by:
        getTransformName in interface org.apache.hop.pipeline.transform.ITransform
      • init

        public boolean init​(org.apache.hop.pipeline.transform.ITransform transformMetaInterface,
                            org.apache.hop.pipeline.transform.ITransformData iTransformData)
      • isAlive

        public boolean isAlive()
      • isPartitioned

        public boolean isPartitioned()
        Specified by:
        isPartitioned in interface org.apache.hop.pipeline.transform.ITransform
      • setPartitionId

        public void setPartitionId​(String partitionId)
        Specified by:
        setPartitionId in interface org.apache.hop.pipeline.transform.ITransform
      • getPartitionId

        public String getPartitionId()
        Specified by:
        getPartitionId in interface org.apache.hop.pipeline.transform.ITransform
      • isStopped

        public boolean isStopped()
        Specified by:
        isStopped in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        isStopped in interface org.apache.hop.pipeline.transform.ITransform
      • markStart

        public void markStart()
        Specified by:
        markStart in interface org.apache.hop.pipeline.transform.ITransform
      • markStop

        public void markStop()
        Specified by:
        markStop in interface org.apache.hop.pipeline.transform.ITransform
      • stopRunning

        public void stopRunning()
                         throws HopException
        Specified by:
        stopRunning in interface org.apache.hop.pipeline.transform.ITransform
        Throws:
        HopException
      • removeRowListener

        public void removeRowListener​(org.apache.hop.pipeline.transform.IRowListener rowListener)
        Specified by:
        removeRowListener in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        removeRowListener in interface org.apache.hop.pipeline.transform.ITransform
      • run

        public void run()
      • setErrors

        public void setErrors​(long errors)
        Specified by:
        setErrors in interface org.apache.hop.pipeline.transform.ITransform
      • setOutputDone

        public void setOutputDone()
        Specified by:
        setOutputDone in interface org.apache.hop.pipeline.transform.ITransform
      • setPartitionID

        public void setPartitionID​(String partitionID)
      • start

        public void start()
      • stopAll

        public void stopAll()
        Specified by:
        stopAll in interface org.apache.hop.pipeline.transform.ITransform
      • stopRunning

        public void stopRunning​(org.apache.hop.pipeline.transform.ITransform transformMetaInterface,
                                org.apache.hop.pipeline.transform.ITransformData iTransformData)
                         throws HopException
        Throws:
        HopException
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in interface org.apache.hop.pipeline.transform.ITransform
      • pauseRunning

        public void pauseRunning()
        Specified by:
        pauseRunning in interface org.apache.hop.pipeline.transform.ITransform
      • resumeRunning

        public void resumeRunning()
        Specified by:
        resumeRunning in interface org.apache.hop.pipeline.transform.ITransform
      • getInputRowMeta

        public IRowMeta getInputRowMeta()
      • getOutputRowMeta

        public IRowMeta getOutputRowMeta()
      • addTransformFinishedListener

        public void addTransformFinishedListener​(org.apache.hop.pipeline.transform.ITransformFinishedListener transformListener)
        Specified by:
        addTransformFinishedListener in interface org.apache.hop.pipeline.transform.ITransform
      • addTransformStartedListener

        public void addTransformStartedListener​(org.apache.hop.pipeline.transform.ITransformStartedListener transformListener)
        Specified by:
        addTransformStartedListener in interface org.apache.hop.pipeline.transform.ITransform
      • setLinesRejected

        public void setLinesRejected​(long linesRejected)
        Specified by:
        setLinesRejected in interface org.apache.hop.pipeline.transform.ITransform
      • getCopy

        public int getCopy()
        Specified by:
        getCopy in interface org.apache.hop.pipeline.transform.ITransform
      • addTransformListener

        public void addTransformListener​(ComponentListener transformListener)
      • isMapping

        public boolean isMapping()
        Specified by:
        isMapping in interface org.apache.hop.pipeline.transform.ITransform
      • getTransformMeta

        public org.apache.hop.pipeline.transform.TransformMeta getTransformMeta()
        Specified by:
        getTransformMeta in interface org.apache.hop.pipeline.transform.ITransform
      • getPipeline

        public org.apache.hop.pipeline.Pipeline getPipeline()
        Specified by:
        getPipeline in interface org.apache.hop.pipeline.transform.ITransform
      • getPipelineMeta

        public org.apache.hop.pipeline.PipelineMeta getPipelineMeta()
      • getLogChannel

        public ILogChannel getLogChannel()
        Specified by:
        getLogChannel in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getLogChannel in interface IHasLogChannel
        Specified by:
        getLogChannel in interface org.apache.hop.pipeline.transform.ITransform
      • getLogText

        public String getLogText()
        Specified by:
        getLogText in interface org.apache.hop.pipeline.engine.IEngineComponent
      • getName

        public String getName()
        Specified by:
        getName in interface org.apache.hop.pipeline.engine.IEngineComponent
      • getCopyNr

        public int getCopyNr()
        Specified by:
        getCopyNr in interface org.apache.hop.pipeline.engine.IEngineComponent
      • getLogLevel

        public LogLevel getLogLevel()
        Specified by:
        getLogLevel in interface org.apache.hop.pipeline.engine.IEngineComponent
      • setLogLevel

        public void setLogLevel​(LogLevel logLevel)
        Specified by:
        setLogLevel in interface org.apache.hop.pipeline.engine.IEngineComponent
      • getLogChannelId

        public String getLogChannelId()
        Specified by:
        getLogChannelId in interface org.apache.hop.pipeline.engine.IEngineComponent
      • isSelected

        public boolean isSelected()
        Specified by:
        isSelected in interface org.apache.hop.pipeline.engine.IEngineComponent
      • isRunning

        public boolean isRunning()
        Specified by:
        isRunning in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        isRunning in interface org.apache.hop.pipeline.transform.ITransform
      • isUsingThreadPriorityManagment

        public boolean isUsingThreadPriorityManagment()
      • setUsingThreadPriorityManagment

        public void setUsingThreadPriorityManagment​(boolean usingThreadPriorityManagment)
      • setRunning

        public void setRunning​(boolean running)
        Specified by:
        setRunning in interface org.apache.hop.pipeline.transform.ITransform
      • setStopped

        public void setStopped​(boolean stopped)
        Specified by:
        setStopped in interface org.apache.hop.pipeline.transform.ITransform
      • setSafeStopped

        public void setSafeStopped​(boolean stopped)
        Specified by:
        setSafeStopped in interface org.apache.hop.pipeline.transform.ITransform
      • rowsetInputSize

        public int rowsetInputSize()
        Specified by:
        rowsetInputSize in interface org.apache.hop.pipeline.transform.ITransform
      • rowsetOutputSize

        public int rowsetOutputSize()
        Specified by:
        rowsetOutputSize in interface org.apache.hop.pipeline.transform.ITransform
      • getProcessed

        public long getProcessed()
        Specified by:
        getProcessed in interface org.apache.hop.pipeline.transform.ITransform
      • getResultFiles

        public Map<String,​ResultFile> getResultFiles()
        Specified by:
        getResultFiles in interface org.apache.hop.pipeline.transform.ITransform
      • getRuntime

        public long getRuntime()
      • getStatus

        public org.apache.hop.pipeline.engine.EngineComponent.ComponentExecutionStatus getStatus()
        Specified by:
        getStatus in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getStatus in interface org.apache.hop.pipeline.transform.ITransform
      • getExecutionDuration

        public long getExecutionDuration()
        Specified by:
        getExecutionDuration in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getExecutionDuration in interface org.apache.hop.pipeline.transform.ITransform
      • getInputBufferSize

        public long getInputBufferSize()
        Specified by:
        getInputBufferSize in interface org.apache.hop.pipeline.engine.IEngineComponent
      • getOutputBufferSize

        public long getOutputBufferSize()
        Specified by:
        getOutputBufferSize in interface org.apache.hop.pipeline.engine.IEngineComponent
      • isPaused

        public boolean isPaused()
        Specified by:
        isPaused in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        isPaused in interface org.apache.hop.pipeline.transform.ITransform
      • identifyErrorOutput

        public void identifyErrorOutput()
        Specified by:
        identifyErrorOutput in interface org.apache.hop.pipeline.transform.ITransform
      • setPartitioned

        public void setPartitioned​(boolean partitioned)
        Specified by:
        setPartitioned in interface org.apache.hop.pipeline.transform.ITransform
      • setRepartitioning

        public void setRepartitioning​(int partitioningMethod)
        Specified by:
        setRepartitioning in interface org.apache.hop.pipeline.transform.ITransform
      • canProcessOneRow

        public boolean canProcessOneRow()
        Specified by:
        canProcessOneRow in interface org.apache.hop.pipeline.transform.ITransform
      • init

        public boolean init()
        Specified by:
        init in interface org.apache.hop.pipeline.transform.ITransform
      • isWaitingForData

        public boolean isWaitingForData()
      • setWaitingForData

        public void setWaitingForData​(boolean waitingForData)
      • isIdle

        public boolean isIdle()
      • isPassingData

        public boolean isPassingData()
      • setPassingData

        public void setPassingData​(boolean passingData)
      • batchComplete

        public void batchComplete()
                           throws HopException
        Specified by:
        batchComplete in interface org.apache.hop.pipeline.transform.ITransform
        Throws:
        HopException
      • startBundle

        public void startBundle()
                         throws HopException
        Specified by:
        startBundle in interface org.apache.hop.pipeline.transform.ITransform
        Throws:
        HopException
      • finishBundle

        public void finishBundle()
                          throws HopException
        Specified by:
        finishBundle in interface org.apache.hop.pipeline.transform.ITransform
        Throws:
        HopException
      • setMetadataProvider

        public void setMetadataProvider​(IHopMetadataProvider metadataProvider)
        Specified by:
        setMetadataProvider in interface org.apache.hop.pipeline.transform.ITransform
      • getMetadataProvider

        public IHopMetadataProvider getMetadataProvider()
        Specified by:
        getMetadataProvider in interface org.apache.hop.pipeline.transform.ITransform
      • getCurrentInputRowSetNr

        public int getCurrentInputRowSetNr()
        Specified by:
        getCurrentInputRowSetNr in interface org.apache.hop.pipeline.transform.ITransform
      • setCurrentOutputRowSetNr

        public void setCurrentOutputRowSetNr​(int index)
        Specified by:
        setCurrentOutputRowSetNr in interface org.apache.hop.pipeline.transform.ITransform
      • getCurrentOutputRowSetNr

        public int getCurrentOutputRowSetNr()
        Specified by:
        getCurrentOutputRowSetNr in interface org.apache.hop.pipeline.transform.ITransform
      • setCurrentInputRowSetNr

        public void setCurrentInputRowSetNr​(int index)
        Specified by:
        setCurrentInputRowSetNr in interface org.apache.hop.pipeline.transform.ITransform
      • getMeta

        public org.apache.hop.pipeline.transform.ITransformMeta getMeta()
        Specified by:
        getMeta in interface org.apache.hop.pipeline.transform.ITransform
      • getData

        public org.apache.hop.pipeline.transform.ITransformData getData()
        Specified by:
        getData in interface org.apache.hop.pipeline.transform.ITransform
      • getInitStartDate

        public Date getInitStartDate()
        Specified by:
        getInitStartDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getInitStartDate in interface org.apache.hop.pipeline.transform.ITransform
      • setInitStartDate

        public void setInitStartDate​(Date initStartDate)
        Specified by:
        setInitStartDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        setInitStartDate in interface org.apache.hop.pipeline.transform.ITransform
      • getExecutionStartDate

        public Date getExecutionStartDate()
        Specified by:
        getExecutionStartDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getExecutionStartDate in interface org.apache.hop.pipeline.transform.ITransform
      • setExecutionStartDate

        public void setExecutionStartDate​(Date executionStartDate)
        Specified by:
        setExecutionStartDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        setExecutionStartDate in interface org.apache.hop.pipeline.transform.ITransform
      • getFirstRowReadDate

        public Date getFirstRowReadDate()
        Specified by:
        getFirstRowReadDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getFirstRowReadDate in interface org.apache.hop.pipeline.transform.ITransform
      • setFirstRowReadDate

        public void setFirstRowReadDate​(Date firstRowReadDate)
        Specified by:
        setFirstRowReadDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        setFirstRowReadDate in interface org.apache.hop.pipeline.transform.ITransform
      • getLastRowWrittenDate

        public Date getLastRowWrittenDate()
        Specified by:
        getLastRowWrittenDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getLastRowWrittenDate in interface org.apache.hop.pipeline.transform.ITransform
      • setLastRowWrittenDate

        public void setLastRowWrittenDate​(Date lastRowWrittenDate)
        Specified by:
        setLastRowWrittenDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        setLastRowWrittenDate in interface org.apache.hop.pipeline.transform.ITransform
      • getExecutionEndDate

        public Date getExecutionEndDate()
        Specified by:
        getExecutionEndDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        getExecutionEndDate in interface org.apache.hop.pipeline.transform.ITransform
      • setExecutionEndDate

        public void setExecutionEndDate​(Date executionEndDate)
        Specified by:
        setExecutionEndDate in interface org.apache.hop.pipeline.engine.IEngineComponent
        Specified by:
        setExecutionEndDate in interface org.apache.hop.pipeline.transform.ITransform