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
Constructor Summary |
StepErrorMeta(org.pentaho.di.core.variables.VariableSpace variables,
Node node,
List<StepMeta> steps)
|
StepErrorMeta(org.pentaho.di.core.variables.VariableSpace variables,
Repository rep,
StepMeta stepMeta,
List<StepMeta> steps)
|
StepErrorMeta(org.pentaho.di.core.variables.VariableSpace space,
StepMeta sourceStep)
Create a new step error handling metadata object |
StepErrorMeta(org.pentaho.di.core.variables.VariableSpace space,
StepMeta sourceStep,
StepMeta targetStep)
Create a new step error handling metadata object |
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 |
Method Summary |
void |
addErrorRowData(Object[] row,
int startIndex,
long nrErrors,
String errorDescriptions,
String fieldNames,
String errorCodes)
|
StepErrorMeta |
clone()
|
String |
getErrorCodesValuename()
|
String |
getErrorDescriptionsValuename()
|
org.pentaho.di.core.row.RowMetaInterface |
getErrorFields()
|
String |
getErrorFieldsValuename()
|
org.pentaho.di.core.row.RowMetaInterface |
getErrorRowMeta(long nrErrors,
String errorDescriptions,
String fieldNames,
String errorCodes)
|
long |
getMaxErrors()
|
int |
getMaxPercentErrors()
|
long |
getMinPercentRows()
|
String |
getNrErrorsValuename()
|
StepMeta |
getSourceStep()
|
StepMeta |
getTargetStep()
|
String |
getXML()
|
boolean |
isEnabled()
|
void |
saveRep(Repository rep,
long id_transformation,
long id_step)
|
void |
setEnabled(boolean enabled)
|
void |
setErrorCodesValuename(String errorCodesValuename)
|
void |
setErrorDescriptionsValuename(String errorDescriptionsValuename)
|
void |
setErrorFieldsValuename(String errorFieldsValuename)
|
void |
setMaxErrors(long maxErrors)
|
void |
setMaxPercentErrors(int maxPercentErrors)
|
void |
setMinPercentRows(long minRowsForPercent)
|
void |
setNrErrorsValuename(String nrErrorsValuename)
|
void |
setSourceStep(StepMeta sourceStep)
|
void |
setTargetStep(StepMeta targetStep)
|
XML_TAG
public static final String XML_TAG
- See Also:
- Constant Field Values
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 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
public StepErrorMeta(org.pentaho.di.core.variables.VariableSpace variables,
Node node,
List<StepMeta> steps)
StepErrorMeta
public StepErrorMeta(org.pentaho.di.core.variables.VariableSpace variables,
Repository rep,
StepMeta stepMeta,
List<StepMeta> steps)
throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
clone
public StepErrorMeta clone()
- Overrides:
clone
in class Object
getXML
public String getXML()
- Specified by:
getXML
in interface org.pentaho.di.core.xml.XMLInterface
saveRep
public void saveRep(Repository rep,
long id_transformation,
long id_step)
throws org.pentaho.di.core.exception.KettleException
- Throws:
org.pentaho.di.core.exception.KettleException
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 long getMaxErrors()
- Returns:
- the maxErrors
setMaxErrors
public void setMaxErrors(long maxErrors)
- Parameters:
maxErrors
- the maxErrors to set
getMaxPercentErrors
public int getMaxPercentErrors()
- Returns:
- the maxPercentErrors
setMaxPercentErrors
public void setMaxPercentErrors(int maxPercentErrors)
- Parameters:
maxPercentErrors
- the maxPercentErrors to set
getMinPercentRows
public long getMinPercentRows()
- Returns:
- the minRowsForPercent
setMinPercentRows
public void setMinPercentRows(long minRowsForPercent)
- Parameters:
minRowsForPercent
- the minRowsForPercent to set