|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pentaho.di.trans.step.BaseStep
org.pentaho.di.trans.steps.mapping.Mapping
public class Mapping
Execute a mapping: a re-usuable transformation
| Field Summary |
|---|
| Fields inherited from class org.pentaho.di.trans.step.BaseStep |
|---|
first, linesInput, linesOutput, linesRead, linesRejected, linesSkipped, linesUpdated, linesWritten, terminator, terminator_rows |
| Constructor Summary | |
|---|---|
Mapping(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int copyNr,
TransMeta transMeta,
Trans trans)
|
|
| Method Summary | |
|---|---|
static void |
addInputRenames(List<MappingValueRename> renameList,
List<MappingValueRename> addRenameList)
|
void |
addRowListener(RowListener rowListener)
For preview of the main data path, make sure we pass the row listener down to the Mapping Output step... |
void |
dispose(StepMetaInterface smi,
StepDataInterface sdi)
Dispose of this step: close files, empty logs, etc. |
long |
getLinesInput()
|
long |
getLinesOutput()
|
long |
getLinesRead()
|
long |
getLinesRejected()
|
long |
getLinesUpdated()
|
long |
getLinesWritten()
|
Trans |
getMappingTrans()
|
boolean |
init(StepMetaInterface smi,
StepDataInterface sdi)
Initialize and do work where other steps need to wait for... |
void |
prepareMappingExecution()
|
boolean |
processRow(StepMetaInterface smi,
StepDataInterface sdi)
Process a single row. |
int |
rowsetInputSize()
|
int |
rowsetOutputSize()
|
void |
stopAll()
Flags all rowsets as stopped/completed/finished. |
void |
stopRunning(StepMetaInterface stepMetaInterface,
StepDataInterface stepDataInterface)
Perform actions to stop a running step. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.pentaho.di.trans.step.StepInterface |
|---|
addStepListener, batchComplete, canProcessOneRow, cleanup, getCopy, getErrors, getInputRowSets, getLogChannel, getOutputRowSets, getPartitionID, getProcessed, getResultFiles, getRow, getRowListeners, getRuntime, getStatus, getStepID, getStepMeta, getStepname, getTrans, identifyErrorOutput, initBeforeStart, isMapping, isPartitioned, isPaused, isRunning, isStopped, isUsingThreadPriorityManagment, markStart, markStop, pauseRunning, putRow, removeRowListener, resumeRunning, setErrors, setLinesRejected, setOutputDone, setPartitioned, setPartitionID, setRepartitioning, setRunning, setStopped, setUsingThreadPriorityManagment |
| Methods inherited from interface org.pentaho.di.core.variables.VariableSpace |
|---|
copyVariablesFrom, environmentSubstitute, environmentSubstitute, getBooleanValueOfVariable, getParentVariableSpace, getVariable, getVariable, initializeVariablesFrom, injectVariables, listVariables, setParentVariableSpace, setVariable, shareVariablesWith |
| Constructor Detail |
|---|
public Mapping(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int copyNr,
TransMeta transMeta,
Trans trans)
| Method Detail |
|---|
public boolean processRow(StepMetaInterface smi,
StepDataInterface sdi)
throws KettleException
processRow in interface StepInterfaceprocessRow in class BaseStepsmi - The steps metadata to work withsdi - The steps temporary working data to work with (database connections, result sets, caches, temporary variables, etc.)
KettleException
public void prepareMappingExecution()
throws KettleException
KettleException
public static void addInputRenames(List<MappingValueRename> renameList,
List<MappingValueRename> addRenameList)
public boolean init(StepMetaInterface smi,
StepDataInterface sdi)
StepInterface
init in interface StepInterfaceinit in class BaseStepsmi - The metadata to work withsdi - The data to initialize
public void dispose(StepMetaInterface smi,
StepDataInterface sdi)
StepInterface
dispose in interface StepInterfacedispose in class BaseStepsmi - The metadata to work withsdi - The data to dispose of
public void stopRunning(StepMetaInterface stepMetaInterface,
StepDataInterface stepDataInterface)
throws KettleException
BaseStep
stopRunning in interface StepInterfacestopRunning in class BaseStepstepMetaInterface - 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.
KettleException - in case something goes wrongpublic void stopAll()
StepInterface
stopAll in interface StepInterfacestopAll in class BaseSteppublic long getLinesInput()
getLinesInput in interface StepInterfacegetLinesInput in class BaseSteppublic long getLinesOutput()
getLinesOutput in interface StepInterfacegetLinesOutput in class BaseSteppublic long getLinesRead()
getLinesRead in interface StepInterfacegetLinesRead in class BaseSteppublic long getLinesRejected()
getLinesRejected in interface StepInterfacegetLinesRejected in class BaseSteppublic long getLinesUpdated()
getLinesUpdated in interface StepInterfacegetLinesUpdated in class BaseSteppublic long getLinesWritten()
getLinesWritten in interface StepInterfacegetLinesWritten in class BaseSteppublic int rowsetInputSize()
rowsetInputSize in interface StepInterfacerowsetInputSize in class BaseSteppublic int rowsetOutputSize()
rowsetOutputSize in interface StepInterfacerowsetOutputSize in class BaseSteppublic Trans getMappingTrans()
public void addRowListener(RowListener rowListener)
addRowListener in interface StepInterfaceaddRowListener in class BaseSteprowListener - the rowlistener to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||