|
||||||||||
| 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.combinationlookup.CombinationLookup
public class CombinationLookup
Manages or looks up information in a Type 1 or junk dimension.
1) Lookup combination field1..n in a dimension
2) If this combination exists, return technical key
3) If this combination doesn't exist, insert & return technical key
4) if replace is Y, remove all key fields from output.
| 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 | |
|---|---|
CombinationLookup(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int copyNr,
TransMeta transMeta,
Trans trans)
|
|
| Method Summary | |
|---|---|
Long |
combiInsert(RowMetaInterface rowMeta,
Object[] row,
Long val_key,
Long val_crc)
This inserts new record into a junk dimension |
void |
dispose(StepMetaInterface smi,
StepDataInterface sdi)
Dispose of this step: close files, empty logs, etc. |
boolean |
init(StepMetaInterface sii,
StepDataInterface sdi)
Initialize and do work where other steps need to wait for... |
boolean |
processRow(StepMetaInterface smi,
StepDataInterface sdi)
Perform the equivalent of processing one row. |
void |
setCombiLookup(RowMetaInterface inputRowMeta)
CombinationLookup table: dimension table keys[]: which dim-fields do we use to look up key? retval: name of the key to return |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 CombinationLookup(StepMeta stepMeta,
StepDataInterface stepDataInterface,
int copyNr,
TransMeta transMeta,
Trans trans)
| Method Detail |
|---|
public boolean processRow(StepMetaInterface smi,
StepDataInterface sdi)
throws KettleException
StepInterface
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 setCombiLookup(RowMetaInterface inputRowMeta)
throws KettleDatabaseException
KettleDatabaseException
public Long combiInsert(RowMetaInterface rowMeta,
Object[] row,
Long val_key,
Long val_crc)
throws KettleDatabaseException
KettleDatabaseException
public boolean init(StepMetaInterface sii,
StepDataInterface sdi)
StepInterface
init in interface StepInterfaceinit in class BaseStepsii - 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||