Package org.pentaho.di.trans.step
Class StepErrorMeta
java.lang.Object
org.pentaho.di.core.changed.ChangedFlag
org.pentaho.di.trans.step.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
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStepErrorMeta(org.pentaho.di.core.variables.VariableSpace space, StepMeta sourceStep) Create a new step error handling metadata objectStepErrorMeta(org.pentaho.di.core.variables.VariableSpace space, StepMeta sourceStep, StepMeta targetStep) Create a new step error handling metadata objectStepErrorMeta(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 objectStepErrorMeta(org.pentaho.di.core.variables.VariableSpace variables, Node node, List<StepMeta> steps) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddErrorRowData(Object[] row, int startIndex, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) clone()org.pentaho.di.core.row.RowMetaInterfaceorg.pentaho.di.core.row.RowMetaInterfacegetErrorRowMeta(long nrErrors, String errorDescriptions, String fieldNames, String errorCodes) getXML()booleanvoidsetEnabled(boolean enabled) voidsetErrorCodesValuename(String errorCodesValuename) voidsetErrorDescriptionsValuename(String errorDescriptionsValuename) voidsetErrorFieldsValuename(String errorFieldsValuename) voidsetMaxErrors(String maxErrors) voidsetMaxPercentErrors(String maxPercentErrors) voidsetMinPercentRows(String minRowsForPercent) voidsetNrErrorsValuename(String nrErrorsValuename) voidsetSourceStep(StepMeta sourceStep) voidsetTargetStep(StepMeta targetStep) Methods inherited from class org.pentaho.di.core.changed.ChangedFlag
addObserver, clearChanged, deleteObserver, hasChanged, notifyObservers, setChanged, setChanged
-
Field Details
-
XML_ERROR_TAG
- See Also:
-
XML_SOURCE_STEP_TAG
- See Also:
-
XML_TARGET_STEP_TAG
- See Also:
-
-
Constructor Details
-
StepErrorMeta
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 rowstargetStep- 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 rowstargetStep- The target step to send the error rows tonrErrorsValuename- 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
-
-
Method Details
-
clone
-
getXML
- Specified by:
getXMLin interfaceorg.pentaho.di.core.xml.XMLInterface
-
getErrorCodesValuename
- Returns:
- the error codes valuename
-
setErrorCodesValuename
- Parameters:
errorCodesValuename- the error codes valuename to set
-
getErrorDescriptionsValuename
- Returns:
- the error descriptions valuename
-
setErrorDescriptionsValuename
- Parameters:
errorDescriptionsValuename- the error descriptions valuename to set
-
getErrorFieldsValuename
- Returns:
- the error fields valuename
-
setErrorFieldsValuename
- Parameters:
errorFieldsValuename- the error fields valuename to set
-
getNrErrorsValuename
- Returns:
- the nr errors valuename
-
setNrErrorsValuename
- Parameters:
nrErrorsValuename- the nr errors valuename to set
-
getTargetStep
- Returns:
- the target step
-
setTargetStep
- Parameters:
targetStep- the target step to set
-
getSourceStep
- Returns:
- The source step can send the error rows
-
setSourceStep
- 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
-
addErrorRowData
-
getMaxErrors
- Returns:
- the maxErrors
-
setMaxErrors
- Parameters:
maxErrors- the maxErrors to set
-
getMaxPercentErrors
- Returns:
- the maxPercentErrors
-
setMaxPercentErrors
- Parameters:
maxPercentErrors- the maxPercentErrors to set
-
getMinPercentRows
- Returns:
- the minRowsForPercent
-
setMinPercentRows
- Parameters:
minRowsForPercent- the minRowsForPercent to set
-