|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 StepInterface
processRow
in class BaseStep
smi
- 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 StepInterface
init
in class BaseStep
smi
- The metadata to work withsdi
- The data to initializepublic void dispose(StepMetaInterface smi, StepDataInterface sdi)
StepInterface
dispose
in interface StepInterface
dispose
in class BaseStep
smi
- The metadata to work withsdi
- The data to dispose ofpublic void stopRunning(StepMetaInterface stepMetaInterface, StepDataInterface stepDataInterface) throws KettleException
BaseStep
stopRunning
in interface StepInterface
stopRunning
in class BaseStep
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.
KettleException
- in case something goes wrongpublic void stopAll()
StepInterface
stopAll
in interface StepInterface
stopAll
in class BaseStep
public long getLinesInput()
getLinesInput
in interface StepInterface
getLinesInput
in class BaseStep
public long getLinesOutput()
getLinesOutput
in interface StepInterface
getLinesOutput
in class BaseStep
public long getLinesRead()
getLinesRead
in interface StepInterface
getLinesRead
in class BaseStep
public long getLinesRejected()
getLinesRejected
in interface StepInterface
getLinesRejected
in class BaseStep
public long getLinesUpdated()
getLinesUpdated
in interface StepInterface
getLinesUpdated
in class BaseStep
public long getLinesWritten()
getLinesWritten
in interface StepInterface
getLinesWritten
in class BaseStep
public int rowsetInputSize()
rowsetInputSize
in interface StepInterface
rowsetInputSize
in class BaseStep
public int rowsetOutputSize()
rowsetOutputSize
in interface StepInterface
rowsetOutputSize
in class BaseStep
public Trans getMappingTrans()
public void addRowListener(RowListener rowListener)
addRowListener
in interface StepInterface
addRowListener
in class BaseStep
rowListener
- the rowlistener to add
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |