Class ScriptValuesMeta

  • All Implemented Interfaces:
    Cloneable, org.apache.hop.pipeline.transform.ITransformMeta

    @Transform(id="ScriptValueMod",
               image="javascript.svg",
               name="i18n::ScriptValuesMod.Name",
               description="i18n::ScriptValuesMod.Description",
               categoryDescription="i18n:org.apache.hop.pipeline.transform:BaseTransform.Category.Scripting",
               keywords="i18n::ScriptValuesMeta.keyword",
               documentationUrl="/pipeline/transforms/javascript.html")
    public class ScriptValuesMeta
    extends org.apache.hop.pipeline.transform.BaseTransformMeta<ScriptValues,​ScriptValuesData>
    • Constructor Detail

      • ScriptValuesMeta

        public ScriptValuesMeta()
    • Method Detail

      • getLength

        public int[] getLength()
        Returns:
        Returns the length.
      • setLength

        public void setLength​(int[] length)
        Parameters:
        length - The length to set.
      • getFieldname

        public String[] getFieldname()
        Returns:
        Returns the name.
      • setFieldname

        public void setFieldname​(String[] fieldname)
        Parameters:
        fieldname - The name to set.
      • getPrecision

        public int[] getPrecision()
        Returns:
        Returns the precision.
      • setPrecision

        public void setPrecision​(int[] precision)
        Parameters:
        precision - The precision to set.
      • getRename

        public String[] getRename()
        Returns:
        Returns the rename.
      • setRename

        public void setRename​(String[] rename)
        Parameters:
        rename - The rename to set.
      • getType

        public int[] getType()
        Returns:
        Returns the type.
      • afterInjection

        public void afterInjection()
      • setType

        public void setType​(int[] type)
        Parameters:
        type - The type to set.
      • getNumberOfJSScripts

        public int getNumberOfJSScripts()
      • getJSScriptNames

        public String[] getJSScriptNames()
      • allocate

        public void allocate​(int nrFields)
      • clone

        public Object clone()
        Specified by:
        clone in interface org.apache.hop.pipeline.transform.ITransformMeta
        Overrides:
        clone in class org.apache.hop.pipeline.transform.BaseTransformMeta<ScriptValues,​ScriptValuesData>
      • setDefault

        public void setDefault()
        Specified by:
        setDefault in interface org.apache.hop.pipeline.transform.ITransformMeta
        Overrides:
        setDefault in class org.apache.hop.pipeline.transform.BaseTransformMeta<ScriptValues,​ScriptValuesData>
      • getXml

        public String getXml()
        Specified by:
        getXml in interface org.apache.hop.pipeline.transform.ITransformMeta
        Overrides:
        getXml in class org.apache.hop.pipeline.transform.BaseTransformMeta<ScriptValues,​ScriptValuesData>
      • getFunctionFromScript

        public String getFunctionFromScript​(String strFunction,
                                            String strScript)
      • supportsErrorHandling

        public boolean supportsErrorHandling()
        Specified by:
        supportsErrorHandling in interface org.apache.hop.pipeline.transform.ITransformMeta
        Overrides:
        supportsErrorHandling in class org.apache.hop.pipeline.transform.BaseTransformMeta<ScriptValues,​ScriptValuesData>
      • getReplace

        public boolean[] getReplace()
        Returns:
        the replace
      • setReplace

        public void setReplace​(boolean[] replace)
        Parameters:
        replace - the replace to set
      • setOptimizationLevel

        public void setOptimizationLevel​(String optimizationLevel)
      • getOptimizationLevel

        public String getOptimizationLevel()