Class StepErrorMeta

  • All Implemented Interfaces:
    Cloneable, ChangedFlagInterface, org.pentaho.di.core.xml.XMLInterface

    public class StepErrorMeta
    extends ChangedFlag
    implements org.pentaho.di.core.xml.XMLInterface, Cloneable
    This class contains the metadata to handle proper error handling on a step level.
    Author:
    Matt
    • Constructor Detail

      • StepErrorMeta

        public StepErrorMeta​(org.pentaho.di.core.variables.VariableSpace space,
                             StepMeta sourceStep)
        Create a new step error handling metadata object
        Parameters:
        sourceStep - The source step that can send the error rows
      • StepErrorMeta

        public StepErrorMeta​(org.pentaho.di.core.variables.VariableSpace space,
                             StepMeta sourceStep,
                             StepMeta targetStep)
        Create a new step error handling metadata object
        Parameters:
        sourceStep - The source step that can send the error rows
        targetStep - The target step to send the error rows to
      • StepErrorMeta

        public StepErrorMeta​(org.pentaho.di.core.variables.VariableSpace space,
                             StepMeta sourceStep,
                             StepMeta targetStep,
                             String nrErrorsValuename,
                             String errorDescriptionsValuename,
                             String errorFieldsValuename,
                             String errorCodesValuename)
        Create a new step error handling metadata object
        Parameters:
        sourceStep - The source step that can send the error rows
        targetStep - The target step to send the error rows to
        nrErrorsValuename - the name of the field value to contain the number of errors (null or empty means it's not needed)
        errorDescriptionsValuename - the name of the field value to contain the error description(s) (null or empty means it's not needed)
        errorFieldsValuename - the name of the field value to contain the fields for which the error(s) occured (null or empty means it's not needed)
        errorCodesValuename - the name of the field value to contain the error code(s) (null or empty means it's not needed)
      • StepErrorMeta

        public StepErrorMeta​(org.pentaho.di.core.variables.VariableSpace variables,
                             Node node,
                             List<StepMeta> steps)
    • Method Detail

      • getXML

        public String getXML()
        Specified by:
        getXML in interface org.pentaho.di.core.xml.XMLInterface
      • getErrorCodesValuename

        public String getErrorCodesValuename()
        Returns:
        the error codes valuename
      • setErrorCodesValuename

        public void setErrorCodesValuename​(String errorCodesValuename)
        Parameters:
        errorCodesValuename - the error codes valuename to set
      • getErrorDescriptionsValuename

        public String getErrorDescriptionsValuename()
        Returns:
        the error descriptions valuename
      • setErrorDescriptionsValuename

        public void setErrorDescriptionsValuename​(String errorDescriptionsValuename)
        Parameters:
        errorDescriptionsValuename - the error descriptions valuename to set
      • getErrorFieldsValuename

        public String getErrorFieldsValuename()
        Returns:
        the error fields valuename
      • setErrorFieldsValuename

        public void setErrorFieldsValuename​(String errorFieldsValuename)
        Parameters:
        errorFieldsValuename - the error fields valuename to set
      • getNrErrorsValuename

        public String getNrErrorsValuename()
        Returns:
        the nr errors valuename
      • setNrErrorsValuename

        public void setNrErrorsValuename​(String nrErrorsValuename)
        Parameters:
        nrErrorsValuename - the nr errors valuename to set
      • getTargetStep

        public StepMeta getTargetStep()
        Returns:
        the target step
      • setTargetStep

        public void setTargetStep​(StepMeta targetStep)
        Parameters:
        targetStep - the target step to set
      • getSourceStep

        public StepMeta getSourceStep()
        Returns:
        The source step can send the error rows
      • setSourceStep

        public void setSourceStep​(StepMeta sourceStep)
        Parameters:
        sourceStep - The source step can send the error rows
      • isEnabled

        public boolean isEnabled()
        Returns:
        the enabled flag: Is the error handling enabled?
      • setEnabled

        public void setEnabled​(boolean enabled)
        Parameters:
        enabled - the enabled flag to set: Is the error handling enabled?
      • getErrorFields

        public org.pentaho.di.core.row.RowMetaInterface getErrorFields()
      • getErrorRowMeta

        public org.pentaho.di.core.row.RowMetaInterface getErrorRowMeta​(long nrErrors,
                                                                        String errorDescriptions,
                                                                        String fieldNames,
                                                                        String errorCodes)
      • addErrorRowData

        public void addErrorRowData​(Object[] row,
                                    int startIndex,
                                    long nrErrors,
                                    String errorDescriptions,
                                    String fieldNames,
                                    String errorCodes)
      • getMaxErrors

        public String getMaxErrors()
        Returns:
        the maxErrors
      • setMaxErrors

        public void setMaxErrors​(String maxErrors)
        Parameters:
        maxErrors - the maxErrors to set
      • getMaxPercentErrors

        public String getMaxPercentErrors()
        Returns:
        the maxPercentErrors
      • setMaxPercentErrors

        public void setMaxPercentErrors​(String maxPercentErrors)
        Parameters:
        maxPercentErrors - the maxPercentErrors to set
      • getMinPercentRows

        public String getMinPercentRows()
        Returns:
        the minRowsForPercent
      • setMinPercentRows

        public void setMinPercentRows​(String minRowsForPercent)
        Parameters:
        minRowsForPercent - the minRowsForPercent to set