Class CalculatorMetaFunction

    • Constructor Detail

      • CalculatorMetaFunction

        public CalculatorMetaFunction​(String fieldName,
                                      int calcType,
                                      String fieldA,
                                      String fieldB,
                                      String fieldC,
                                      int valueType,
                                      int valueLength,
                                      int valuePrecision,
                                      boolean removedFromResult,
                                      String conversionMask,
                                      String decimalSymbol,
                                      String groupingSymbol,
                                      String currencySymbol)
        Parameters:
        fieldName - out field name
        calcType - calculation type, see CALC_* set of constants defined
        fieldA - name of field "A"
        fieldB - name of field "B"
        fieldC - name of field "C"
        valueType - out value type
        valueLength - out value length
        valuePrecision - out value precision
        conversionMask - out value conversion mask
        decimalSymbol - out value decimal symbol
        groupingSymbol - out value grouping symbol
        currencySymbol - out value currency symbol
      • CalculatorMetaFunction

        public CalculatorMetaFunction()
      • CalculatorMetaFunction

        public CalculatorMetaFunction​(Node calcnode)
      • CalculatorMetaFunction

        public CalculatorMetaFunction​(Repository rep,
                                      org.pentaho.di.repository.ObjectId id_step,
                                      int nr)
                               throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getXML

        public String getXML()
      • saveRep

        public void saveRep​(Repository rep,
                            org.pentaho.metastore.api.IMetaStore metaStore,
                            org.pentaho.di.repository.ObjectId id_transformation,
                            org.pentaho.di.repository.ObjectId id_step,
                            int nr)
                     throws org.pentaho.di.core.exception.KettleException
        Throws:
        org.pentaho.di.core.exception.KettleException
      • getCalcFunctionType

        public static int getCalcFunctionType​(String desc)
      • getCalcFunctionDesc

        public static String getCalcFunctionDesc​(int type)
      • getCalcFunctionLongDesc

        public static String getCalcFunctionLongDesc​(int type)
      • getCalcFunctionDefaultResultType

        public static int getCalcFunctionDefaultResultType​(int type)
      • getCalcType

        public int getCalcType()
        Returns:
        Returns the calcType.
      • setCalcType

        public void setCalcType​(int calcType)
        Parameters:
        calcType - The calcType to set.
      • getCalcTypeDesc

        public String getCalcTypeDesc()
      • getCalcTypeLongDesc

        public String getCalcTypeLongDesc()
      • getFieldA

        public String getFieldA()
        Returns:
        Returns the fieldA.
      • setFieldA

        public void setFieldA​(String fieldA)
        Parameters:
        fieldA - The fieldA to set.
      • getFieldB

        public String getFieldB()
        Returns:
        Returns the fieldB.
      • setFieldB

        public void setFieldB​(String fieldB)
        Parameters:
        fieldB - The fieldB to set.
      • getFieldC

        public String getFieldC()
        Returns:
        Returns the fieldC.
      • setFieldC

        public void setFieldC​(String fieldC)
        Parameters:
        fieldC - The fieldC to set.
      • getFieldName

        public String getFieldName()
        Returns:
        Returns the fieldName.
      • setFieldName

        public void setFieldName​(String fieldName)
        Parameters:
        fieldName - The fieldName to set.
      • getValueLength

        public int getValueLength()
        Returns:
        Returns the valueLength.
      • setValueLength

        public void setValueLength​(int valueLength)
        Parameters:
        valueLength - The valueLength to set.
      • getValuePrecision

        public int getValuePrecision()
        Returns:
        Returns the valuePrecision.
      • setValuePrecision

        public void setValuePrecision​(int valuePrecision)
        Parameters:
        valuePrecision - The valuePrecision to set.
      • getValueType

        public int getValueType()
        Returns:
        Returns the valueType.
      • setValueType

        public void setValueType​(int valueType)
        Parameters:
        valueType - The valueType to set.
      • isRemovedFromResult

        public boolean isRemovedFromResult()
        Returns:
        Returns the removedFromResult.
      • setRemovedFromResult

        public void setRemovedFromResult​(boolean removedFromResult)
        Parameters:
        removedFromResult - The removedFromResult to set.
      • getConversionMask

        public String getConversionMask()
        Returns:
        the conversionMask
      • setConversionMask

        public void setConversionMask​(String conversionMask)
        Parameters:
        conversionMask - the conversionMask to set
      • getDecimalSymbol

        public String getDecimalSymbol()
        Returns:
        the decimalSymbol
      • setDecimalSymbol

        public void setDecimalSymbol​(String decimalSymbol)
        Parameters:
        decimalSymbol - the decimalSymbol to set
      • getGroupingSymbol

        public String getGroupingSymbol()
        Returns:
        the groupingSymbol
      • setGroupingSymbol

        public void setGroupingSymbol​(String groupingSymbol)
        Parameters:
        groupingSymbol - the groupingSymbol to set
      • getCurrencySymbol

        public String getCurrencySymbol()
        Returns:
        the currencySymbol
      • setCurrencySymbol

        public void setCurrencySymbol​(String currencySymbol)
        Parameters:
        currencySymbol - the currencySymbol to set