public class ScriptDummy extends Object implements StepInterface
| 构造器和说明 |
|---|
ScriptDummy(org.pentaho.di.core.row.RowMetaInterface inputRowMeta,
org.pentaho.di.core.row.RowMetaInterface outputRowMeta) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
addStepListener(StepListener stepListener)
Attach a step listener to be notified when a step arrives in a certain state.
|
void |
batchComplete()
Calling this method will alert the step that we finished passing a batch of records to the step.
|
boolean |
canProcessOneRow()
This method checks if the step is capable of processing at least one row.
|
void |
cleanup()
Call this method typically, after ALL the slave transformations in a clustered run have finished.
|
void |
copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space) |
void |
dispose(StepMetaInterface sii,
StepDataInterface sdi)
Dispose of this step: close files, empty logs, etc.
|
String |
environmentSubstitute(String aString) |
String[] |
environmentSubstitute(String[] string) |
String |
fieldSubstitute(String aString,
org.pentaho.di.core.row.RowMetaInterface rowMeta,
Object[] rowData) |
boolean |
getBooleanValueOfVariable(String variableName,
boolean defaultValue) |
int |
getCopy() |
int |
getCurrentInputRowSetNr() |
int |
getCurrentOutputRowSetNr() |
long |
getErrors()
Get the number of errors
|
org.pentaho.di.core.row.RowMetaInterface |
getInputRowMeta() |
List<org.pentaho.di.core.RowSet> |
getInputRowSets() |
long |
getLinesInput() |
long |
getLinesOutput() |
long |
getLinesRead() |
long |
getLinesRejected() |
long |
getLinesUpdated() |
long |
getLinesWritten() |
org.pentaho.di.core.logging.LogChannelInterface |
getLogChannel() |
org.pentaho.metastore.api.IMetaStore |
getMetaStore() |
org.pentaho.di.core.row.RowMetaInterface |
getOutputRowMeta() |
List<org.pentaho.di.core.RowSet> |
getOutputRowSets() |
org.pentaho.di.core.variables.VariableSpace |
getParentVariableSpace() |
String |
getPartitionID() |
long |
getProcessed() |
Repository |
getRepository() |
Map<String,org.pentaho.di.core.ResultFile> |
getResultFiles() |
Object[] |
getRow() |
List<RowListener> |
getRowListeners() |
long |
getRuntime() |
BaseStepData.StepExecutionStatus |
getStatus() |
String |
getStepID() |
StepMeta |
getStepMeta() |
String |
getStepname()
Get the name of the step.
|
Trans |
getTrans() |
String |
getVariable(String variableName) |
String |
getVariable(String variableName,
String defaultValue) |
void |
identifyErrorOutput()
To be used to flag an error output channel of a step prior to execution for performance reasons.
|
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 |
initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent) |
void |
injectVariables(Map<String,String> prop) |
boolean |
isAlive() |
boolean |
isIdle() |
boolean |
isMapping() |
boolean |
isPartitioned() |
boolean |
isPassingData() |
boolean |
isPaused() |
boolean |
isRunning() |
boolean |
isStopped() |
boolean |
isUsingThreadPriorityManagment() |
boolean |
isWaitingForData() |
String[] |
listVariables() |
void |
markStart()
Mark the start time of the step.
|
void |
markStop()
Mark the end time of the step.
|
void |
pauseRunning()
Pause a running step
|
boolean |
processRow(StepMetaInterface smi,
StepDataInterface sdi)
Perform the equivalent of processing one row.
|
void |
putRow(org.pentaho.di.core.row.RowMetaInterface rowMeta,
Object[] row)
Put a row on the destination rowsets.
|
void |
removeRowListener(RowListener rowListener)
Remove a rowlistener from this step.
|
void |
resumeRunning()
Resume a running step
|
int |
rowsetInputSize() |
int |
rowsetOutputSize() |
void |
run() |
void |
setCurrentInputRowSetNr(int index) |
void |
setCurrentOutputRowSetNr(int index) |
void |
setErrors(long errors)
Sets the number of errors
|
void |
setLinesRejected(long linesRejected) |
void |
setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)
Pass along the metastore to use when loading external elements at runtime.
|
void |
setOutputDone()
Signal output done to destination steps
|
void |
setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent) |
void |
setPartitioned(boolean partitioned) |
void |
setPartitionID(String partitionID) |
void |
setPassingData(boolean passingData) |
void |
setRepartitioning(int partitioningMethod) |
void |
setRepository(Repository repository) |
void |
setRunning(boolean running)
Flag the step as running or not
|
void |
setSafeStopped(boolean stopped) |
void |
setStopped(boolean stopped) |
void |
setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment) |
void |
setVariable(String variableName,
String variableValue) |
void |
setWaitingForData(boolean waitingForData) |
void |
shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space) |
void |
start() |
void |
stopAll()
Flags all rowsets as stopped/completed/finished.
|
void |
stopRunning(StepMetaInterface stepMetaInterface,
StepDataInterface stepDataInterface)
Stop running operations...
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddRowSetToInputRowSets, addRowSetToOutputRowSets, isSafeStopped, subStatusespublic ScriptDummy(org.pentaho.di.core.row.RowMetaInterface inputRowMeta,
org.pentaho.di.core.row.RowMetaInterface outputRowMeta)
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws org.pentaho.di.core.exception.KettleException
StepInterfaceprocessRow 在接口中 StepInterfacesmi - The steps metadata to work withsdi - The steps temporary working data to work with (database connections, result sets, caches, temporary
variables, etc.)org.pentaho.di.core.exception.KettleExceptionpublic void addRowListener(RowListener rowListener)
StepInterfaceaddRowListener 在接口中 StepInterfacerowListener - the rowlistener to addpublic void dispose(StepMetaInterface sii, StepDataInterface sdi)
StepInterfacedispose 在接口中 StepInterfacesii - The metadata to work withsdi - The data to dispose ofpublic long getErrors()
StepInterfacegetErrors 在接口中 StepInterfacepublic List<org.pentaho.di.core.RowSet> getInputRowSets()
getInputRowSets 在接口中 StepInterfacepublic long getLinesInput()
getLinesInput 在接口中 StepInterfacepublic long getLinesOutput()
getLinesOutput 在接口中 StepInterfacepublic long getLinesRead()
getLinesRead 在接口中 StepInterfacepublic long getLinesUpdated()
getLinesUpdated 在接口中 StepInterfacepublic long getLinesWritten()
getLinesWritten 在接口中 StepInterfacepublic long getLinesRejected()
getLinesRejected 在接口中 StepInterfacepublic List<org.pentaho.di.core.RowSet> getOutputRowSets()
getOutputRowSets 在接口中 StepInterfacepublic String getPartitionID()
getPartitionID 在接口中 StepInterfacepublic Object[] getRow() throws org.pentaho.di.core.exception.KettleException
getRow 在接口中 StepInterfaceorg.pentaho.di.core.exception.KettleExceptionpublic List<RowListener> getRowListeners()
getRowListeners 在接口中 StepInterfacepublic String getStepID()
getStepID 在接口中 StepInterfacepublic String getStepname()
StepInterfacegetStepname 在接口中 StepInterfacepublic boolean init(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface)
StepInterfaceinit 在接口中 StepInterfacestepMetaInterface - The metadata to work withstepDataInterface - The data to initializepublic boolean isAlive()
public boolean isPartitioned()
isPartitioned 在接口中 StepInterfacepublic boolean isStopped()
isStopped 在接口中 StepInterfacepublic void markStart()
StepInterfacemarkStart 在接口中 StepInterfacepublic void markStop()
StepInterfacemarkStop 在接口中 StepInterfacepublic void putRow(org.pentaho.di.core.row.RowMetaInterface rowMeta,
Object[] row)
throws org.pentaho.di.core.exception.KettleException
StepInterfaceputRow 在接口中 StepInterfacerowMeta - The row to send to the destinations stepsorg.pentaho.di.core.exception.KettleExceptionpublic void removeRowListener(RowListener rowListener)
StepInterfaceremoveRowListener 在接口中 StepInterfacerowListener - the rowlistener to removepublic void run()
public void setErrors(long errors)
StepInterfacesetErrors 在接口中 StepInterfaceerrors - the number of errors to setpublic void setOutputDone()
StepInterfacesetOutputDone 在接口中 StepInterfacepublic void setPartitionID(String partitionID)
setPartitionID 在接口中 StepInterfacepartitionID - the partitionID to setpublic void start()
public void stopAll()
StepInterfacestopAll 在接口中 StepInterfacepublic void stopRunning(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) throws org.pentaho.di.core.exception.KettleException
StepInterfacestopRunning 在接口中 StepInterfacestepMetaInterface - The metadata that might be needed by the step to stop running.stepDataInterface - The interface to the step data containing the connections, resultsets, open files, etc.org.pentaho.di.core.exception.KettleExceptionpublic void cleanup()
StepInterfacecleanup 在接口中 StepInterfacepublic void pauseRunning()
StepInterfacepauseRunning 在接口中 StepInterfacepublic void resumeRunning()
StepInterfaceresumeRunning 在接口中 StepInterfacepublic void copyVariablesFrom(org.pentaho.di.core.variables.VariableSpace space)
copyVariablesFrom 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String environmentSubstitute(String aString)
environmentSubstitute 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String[] environmentSubstitute(String[] string)
environmentSubstitute 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String fieldSubstitute(String aString, org.pentaho.di.core.row.RowMetaInterface rowMeta, Object[] rowData) throws org.pentaho.di.core.exception.KettleValueException
fieldSubstitute 在接口中 org.pentaho.di.core.variables.VariableSpaceorg.pentaho.di.core.exception.KettleValueExceptionpublic boolean getBooleanValueOfVariable(String variableName, boolean defaultValue)
getBooleanValueOfVariable 在接口中 org.pentaho.di.core.variables.VariableSpacepublic org.pentaho.di.core.variables.VariableSpace getParentVariableSpace()
getParentVariableSpace 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void setParentVariableSpace(org.pentaho.di.core.variables.VariableSpace parent)
setParentVariableSpace 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String getVariable(String variableName, String defaultValue)
getVariable 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String getVariable(String variableName)
getVariable 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void initializeVariablesFrom(org.pentaho.di.core.variables.VariableSpace parent)
initializeVariablesFrom 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void injectVariables(Map<String,String> prop)
injectVariables 在接口中 org.pentaho.di.core.variables.VariableSpacepublic String[] listVariables()
listVariables 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void setVariable(String variableName, String variableValue)
setVariable 在接口中 org.pentaho.di.core.variables.VariableSpacepublic void shareVariablesWith(org.pentaho.di.core.variables.VariableSpace space)
shareVariablesWith 在接口中 org.pentaho.di.core.variables.VariableSpacepublic org.pentaho.di.core.row.RowMetaInterface getInputRowMeta()
public org.pentaho.di.core.row.RowMetaInterface getOutputRowMeta()
public void initBeforeStart()
throws org.pentaho.di.core.exception.KettleStepException
StepInterfaceinitBeforeStart 在接口中 StepInterfaceorg.pentaho.di.core.exception.KettleStepException - In case there is an errorpublic void setLinesRejected(long linesRejected)
setLinesRejected 在接口中 StepInterfacelinesRejected - steps the lines rejected by error handling.public int getCopy()
getCopy 在接口中 StepInterfacepublic void addStepListener(StepListener stepListener)
StepInterfaceaddStepListener 在接口中 StepInterfacestepListener - The listener to add to the steppublic boolean isMapping()
isMapping 在接口中 StepInterfacepublic StepMeta getStepMeta()
getStepMeta 在接口中 StepInterfacepublic Trans getTrans()
getTrans 在接口中 StepInterfacepublic org.pentaho.di.core.logging.LogChannelInterface getLogChannel()
getLogChannel 在接口中 HasLogChannelInterfacegetLogChannel 在接口中 StepInterfacepublic boolean isUsingThreadPriorityManagment()
isUsingThreadPriorityManagment 在接口中 StepInterfacepublic void setUsingThreadPriorityManagment(boolean usingThreadPriorityManagment)
setUsingThreadPriorityManagment 在接口中 StepInterfaceusingThreadPriorityManagment - set to true to actively manage priorities of step threadspublic boolean isRunning()
isRunning 在接口中 StepInterfacepublic void setRunning(boolean running)
StepInterfacesetRunning 在接口中 StepInterfacerunning - the running flag to setpublic void setStopped(boolean stopped)
setStopped 在接口中 StepInterfacestopped - true if the step needs to be stoppedpublic void setSafeStopped(boolean stopped)
setSafeStopped 在接口中 StepInterfacestopped - true if the step needs to be safe stoppedpublic int rowsetInputSize()
rowsetInputSize 在接口中 StepInterfacepublic int rowsetOutputSize()
rowsetOutputSize 在接口中 StepInterfacepublic long getProcessed()
getProcessed 在接口中 StepInterfacepublic Map<String,org.pentaho.di.core.ResultFile> getResultFiles()
getResultFiles 在接口中 StepInterfacepublic long getRuntime()
getRuntime 在接口中 StepInterfacepublic BaseStepData.StepExecutionStatus getStatus()
getStatus 在接口中 StepInterfaceStepDataInterfacepublic boolean isPaused()
isPaused 在接口中 StepInterfacepublic void identifyErrorOutput()
StepInterfaceidentifyErrorOutput 在接口中 StepInterfacepublic void setPartitioned(boolean partitioned)
setPartitioned 在接口中 StepInterfacepartitioned - true if this step is partitionedpublic void setRepartitioning(int partitioningMethod)
setRepartitioning 在接口中 StepInterfacepartitioningMethod - The repartitioning methodpublic boolean canProcessOneRow()
StepInterfaceFor example, if a step has no input records but needs at least one to function, it will return false.
canProcessOneRow 在接口中 StepInterfacepublic boolean isWaitingForData()
public void setWaitingForData(boolean waitingForData)
public boolean isIdle()
public boolean isPassingData()
public void setPassingData(boolean passingData)
public void batchComplete()
throws org.pentaho.di.core.exception.KettleException
StepInterfacebatchComplete 在接口中 StepInterfaceorg.pentaho.di.core.exception.KettleException - In case an error occurs during the processing of the batch of rows.public void setMetaStore(org.pentaho.metastore.api.IMetaStore metaStore)
StepInterfacesetMetaStore 在接口中 StepInterfacemetaStore - The metastore to usepublic org.pentaho.metastore.api.IMetaStore getMetaStore()
getMetaStore 在接口中 StepInterfacepublic void setRepository(Repository repository)
setRepository 在接口中 StepInterfacerepository - The repository used by the step to load and reference Kettle objects with at runtimepublic Repository getRepository()
getRepository 在接口中 StepInterfacepublic int getCurrentInputRowSetNr()
getCurrentInputRowSetNr 在接口中 StepInterfacepublic void setCurrentOutputRowSetNr(int index)
setCurrentOutputRowSetNr 在接口中 StepInterfaceindex - Sets the index of the active (current) output row set to use.public int getCurrentOutputRowSetNr()
getCurrentOutputRowSetNr 在接口中 StepInterfacepublic void setCurrentInputRowSetNr(int index)
setCurrentInputRowSetNr 在接口中 StepInterfaceindex - Sets the index of the active (current) input row set to use.Copyright © 2024 Hitachi Vantara. All rights reserved.