Package org.pentaho.di.lineage
Class FieldnameLineage
java.lang.Object
org.pentaho.di.lineage.FieldnameLineage
This describes how a field gets renamed in a certain step.
It helps us to do the complete lineage from source to target and back.
It helps us to do the complete lineage from source to target and back.
- Author:
- matt
-
Constructor Summary
ConstructorDescriptionFieldnameLineage
(String inputFieldname, String outputFieldname) Create a new field lineage object -
Method Summary
Modifier and TypeMethodDescriptionstatic final FieldnameLineage
findFieldnameLineageWithInput
(List<FieldnameLineage> lineages, String input) Search for a field name lineage object in a list.void
setInputFieldname
(String inputFieldname) void
setOutputFieldname
(String outputFieldname)
-
Constructor Details
-
FieldnameLineage
Create a new field lineage object- Parameters:
inputFieldname
- The input field nameoutputFieldname
- The output field name
-
-
Method Details
-
getInputFieldname
- Returns:
- the input Field name
-
setInputFieldname
- Parameters:
inputFieldname
- the input Field name to set
-
getOutputFieldname
- Returns:
- the output Field name
-
setOutputFieldname
- Parameters:
outputFieldname
- the output Field name to set
-
findFieldnameLineageWithInput
public static final FieldnameLineage findFieldnameLineageWithInput(List<FieldnameLineage> lineages, String input) Search for a field name lineage object in a list.- Parameters:
lineages
- The listinput
- the input field name to look for- Returns:
- The first encountered field name lineage object where the input field name matches. If nothing is found null is returned.
-