Class StepWithMappingMeta

    • Field Detail

      • specificationMethod

        protected org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod
      • transName

        protected String transName
      • fileName

        protected String fileName
      • directoryPath

        protected String directoryPath
      • transObjectId

        protected org.pentaho.di.repository.ObjectId transObjectId
    • Constructor Detail

      • StepWithMappingMeta

        public StepWithMappingMeta()
    • Method Detail

      • 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

        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)
      • 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 interface HasRepositoryDirectories
        Returns:
        String array of specification method(s)
      • setSpecificationMethod

        public void setSpecificationMethod​(org.pentaho.di.core.ObjectLocationSpecificationMethod specificationMethod)
        Parameters:
        specificationMethod - the specificationMethod to set
      • getDirectoryPath

        public String getDirectoryPath()
        Returns:
        the directoryPath
      • setDirectoryPath

        public void setDirectoryPath​(String directoryPath)
        Parameters:
        directoryPath - the directoryPath to set
      • getDirectories

        public String[] 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 interface HasRepositoryDirectories
        Returns:
        String array of repository directories
      • setDirectories

        public void setDirectories​(String[] directories)
        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 interface HasRepositoryDirectories
        Parameters:
        directories - Array of updated rep directories to set
      • getFileName

        public String getFileName()
        Returns:
        the fileName
      • setFileName

        public void setFileName​(String fileName)
        Parameters:
        fileName - the fileName to set
      • replaceFileName

        public void replaceFileName​(String fileName)
        Parameters:
        fileName - the fileName to set
      • getTransName

        public String getTransName()
        Returns:
        the transName
      • setTransName

        public void setTransName​(String transName)
        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 interface StepMetaInterface
        Overrides:
        exportResources in class BaseStepMeta
        Parameters:
        space - the variable space to use
        repository - 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)