Package org.pentaho.di.trans
Class StepWithMappingMeta
java.lang.Object
org.pentaho.di.trans.step.BaseStepMeta
org.pentaho.di.core.util.serialization.BaseSerializingMeta
org.pentaho.di.trans.StepWithMappingMeta
- All Implemented Interfaces:
Cloneable
,HasRepositoryDirectories
,StepAttributesInterface
,StepMetaInterface
- Direct Known Subclasses:
BaseStreamStepMeta
,MappingMeta
,SimpleMappingMeta
,SingleThreaderMeta
,TransExecutorMeta
public abstract class StepWithMappingMeta
extends BaseSerializingMeta
implements HasRepositoryDirectories, StepMetaInterface
This class is supposed to use in steps where the mapping to sub transformations takes place
- Since:
- 02-jan-2017
- Author:
- Yury Bakhmutski
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected String
protected org.pentaho.di.core.ObjectLocationSpecificationMethod
protected String
protected org.pentaho.di.repository.ObjectId
Fields inherited from class org.pentaho.di.trans.step.BaseStepMeta
attributes, databases, log, loggingObject, parentStepMeta, repository, STEP_ATTRIBUTES_FILE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
activateParams
(org.pentaho.di.core.variables.VariableSpace childVariableSpace, org.pentaho.di.core.parameters.NamedParams childNamedParams, org.pentaho.di.core.variables.VariableSpace parent, String[] listParameters, String[] mappingVariables, String[] inputFields) static void
activateParams
(org.pentaho.di.core.variables.VariableSpace childVariableSpace, org.pentaho.di.core.parameters.NamedParams childNamedParams, org.pentaho.di.core.variables.VariableSpace parent, String[] listParameters, String[] mappingVariables, String[] inputFields, boolean isPassingAllParameters) static void
addMissingVariables
(org.pentaho.di.core.variables.VariableSpace fromSpace, org.pentaho.di.core.variables.VariableSpace toSpace) exportResources
(org.pentaho.di.core.variables.VariableSpace space, Map<String, ResourceDefinition> definitions, ResourceNamingInterface resourceNamingInterface, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) String[]
If step has reference(s) to another transformation(s)/job(s) returns an array of repository directories.org.pentaho.di.core.ObjectLocationSpecificationMethod
org.pentaho.di.core.ObjectLocationSpecificationMethod[]
If step has reference(s) to another transformation(s)/job(s) returns an array of specification method(s) defining the type of an access to a referenced file.org.pentaho.di.repository.ObjectId
static TransMeta
loadMappingMeta
(StepWithMappingMeta mappingMeta, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space) static TransMeta
loadMappingMeta
(StepWithMappingMeta executorMeta, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space, boolean share) void
replaceFileName
(String fileName) static void
replaceVariableValues
(org.pentaho.di.core.variables.VariableSpace childTransMeta, org.pentaho.di.core.variables.VariableSpace replaceBy) static void
replaceVariableValues
(org.pentaho.di.core.variables.VariableSpace childTransMeta, org.pentaho.di.core.variables.VariableSpace replaceBy, String type) void
setDirectories
(String[] directories) If step has reference(s) to another transformation(s)/job(s) sets updated repository directories from incoming String array.void
setDirectoryPath
(String directoryPath) void
setFileName
(String fileName) void
setSpecificationMethod
(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod) void
setTransName
(String transName) void
setTransObjectId
(org.pentaho.di.repository.ObjectId transObjectId) Methods inherited from class org.pentaho.di.core.util.serialization.BaseSerializingMeta
getXML, loadXML, readRep, saveRep, withVariables
Methods inherited from class org.pentaho.di.trans.step.BaseStepMeta
analyseImpact, analyseImpact, cancelQueries, check, check, check, clone, createEntry, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, extractStepMetadataEntries, findAttribute, findParent, findParentEntry, getActiveReferencedObjectDescription, getDescription, getDialogClassName, getFields, getFields, getLog, getLogChannelId, getName, getObjectCopy, getObjectId, getObjectRevision, getObjectType, getOptionalStreams, getParent, getParentStepMeta, getReferencedObjectDescriptions, getRepCode, getRepositoryDirectory, getRequiredFields, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStepInjectionMetadataEntries, getStepIOMeta, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getTooltip, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXmlCode, handleStreamSelection, hasChanged, hasRepositoryReferences, isBasic, isDebug, isDetailed, isReferencedObjectEnabled, isRowLevel, loadReferencedObject, loadReferencedObject, loadStepAttributes, loadXML, loadXML, logBasic, logBasic, logDebug, logDebug, logDetailed, logDetailed, logError, logError, logError, logMinimal, logMinimal, logRowlevel, logRowlevel, lookupRepositoryReferences, readRep, readRep, resetStepIoMeta, saveRep, searchInfoAndTargetSteps, setChanged, setChanged, setParentStepMeta, setStepIOMeta, supportsErrorHandling
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.pentaho.di.trans.step.StepMetaInterface
analyseImpact, analyseImpact, cancelQueries, check, check, cleanAfterHopFromRemove, cleanAfterHopFromRemove, cleanAfterHopToRemove, clone, excludeFromCopyDistributeVerification, excludeFromRowLayoutVerification, exportResources, extractStepMetadataEntries, fetchTransMeta, getActiveReferencedObjectDescription, getDialogClassName, getFields, getFields, getOptionalStreams, getParentStepMeta, getReferencedObjectDescriptions, getRequiredFields, getResourceDependencies, getSQLStatements, getSQLStatements, getStep, getStepData, getStepIOMeta, getStepMetaInjectionInterface, getSupportedTransformationTypes, getTableFields, getUsedArguments, getUsedDatabaseConnections, getUsedLibraries, getXML, handleStreamSelection, hasChanged, hasRepositoryReferences, isReferencedObjectEnabled, loadReferencedObject, loadXML, loadXML, lookupRepositoryReferences, passDataToServletOutput, readRep, readRep, resetStepIoMeta, saveRep, saveRep, searchInfoAndTargetSteps, setChanged, setDefault, setParentStepMeta, supportsErrorHandling
-
Field Details
-
specificationMethod
protected org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod -
transName
-
fileName
-
directoryPath
-
transObjectId
protected org.pentaho.di.repository.ObjectId transObjectId
-
-
Constructor Details
-
StepWithMappingMeta
public StepWithMappingMeta()
-
-
Method Details
-
loadMappingMeta
public static TransMeta loadMappingMeta(StepWithMappingMeta mappingMeta, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
loadMappingMeta
public static TransMeta loadMappingMeta(StepWithMappingMeta executorMeta, Repository rep, org.pentaho.metastore.api.IMetaStore metaStore, org.pentaho.di.core.variables.VariableSpace space, boolean share) throws org.pentaho.di.core.exception.KettleException - Throws:
org.pentaho.di.core.exception.KettleException
-
activateParams
-
activateParams
public static void activateParams(org.pentaho.di.core.variables.VariableSpace childVariableSpace, org.pentaho.di.core.parameters.NamedParams childNamedParams, org.pentaho.di.core.variables.VariableSpace parent, String[] listParameters, String[] mappingVariables, String[] inputFields, boolean isPassingAllParameters) -
getSpecificationMethod
public org.pentaho.di.core.ObjectLocationSpecificationMethod getSpecificationMethod()- Returns:
- the specificationMethod
-
getSpecificationMethods
public org.pentaho.di.core.ObjectLocationSpecificationMethod[] getSpecificationMethods()Description copied from interface:HasRepositoryDirectories
If step has reference(s) to another transformation(s)/job(s) returns an array of specification method(s) defining the type of an access to a referenced file. An implementation is considered to define the array order itself.- Specified by:
getSpecificationMethods
in interfaceHasRepositoryDirectories
- Returns:
- String array of specification method(s)
-
setSpecificationMethod
public void setSpecificationMethod(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod) - Parameters:
specificationMethod
- the specificationMethod to set
-
getDirectoryPath
- Returns:
- the directoryPath
-
setDirectoryPath
- Parameters:
directoryPath
- the directoryPath to set
-
getDirectories
Description copied from interface:HasRepositoryDirectories
If step has reference(s) to another transformation(s)/job(s) returns an array of repository directories. An implementation is considered to define the array order itself.- Specified by:
getDirectories
in interfaceHasRepositoryDirectories
- Returns:
- String array of repository directories
-
setDirectories
Description copied from interface:HasRepositoryDirectories
If step has reference(s) to another transformation(s)/job(s) sets updated repository directories from incoming String array. An implementation is considered to define the array order itself.- Specified by:
setDirectories
in interfaceHasRepositoryDirectories
- Parameters:
directories
- Array of updated rep directories to set
-
getFileName
- Returns:
- the fileName
-
setFileName
- Parameters:
fileName
- the fileName to set
-
replaceFileName
- Parameters:
fileName
- the fileName to set
-
getTransName
- Returns:
- the transName
-
setTransName
- Parameters:
transName
- the transName to set
-
getTransObjectId
public org.pentaho.di.repository.ObjectId getTransObjectId()- Returns:
- the transObjectId
-
setTransObjectId
public void setTransObjectId(org.pentaho.di.repository.ObjectId transObjectId) - Parameters:
transObjectId
- the transObjectId to set
-
exportResources
public String exportResources(org.pentaho.di.core.variables.VariableSpace space, Map<String, ResourceDefinition> definitions, ResourceNamingInterface resourceNamingInterface, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleException- Specified by:
exportResources
in interfaceStepMetaInterface
- Overrides:
exportResources
in classBaseStepMeta
- Parameters:
space
- the variable space to userepository
- The repository to optionally load other resources from (to be converted to XML)metaStore
- the metaStore in which non-kettle metadata could reside.- Returns:
- the filename of the exported resource
- Throws:
org.pentaho.di.core.exception.KettleException
-
addMissingVariables
public static void addMissingVariables(org.pentaho.di.core.variables.VariableSpace fromSpace, org.pentaho.di.core.variables.VariableSpace toSpace) -
replaceVariableValues
public static void replaceVariableValues(org.pentaho.di.core.variables.VariableSpace childTransMeta, org.pentaho.di.core.variables.VariableSpace replaceBy, String type) -
replaceVariableValues
public static void replaceVariableValues(org.pentaho.di.core.variables.VariableSpace childTransMeta, org.pentaho.di.core.variables.VariableSpace replaceBy) -
getInputMappings
- Returns:
- the inputMappings
-
getOutputMappings
- Returns:
- the outputMappings
-