public class StepErrorMeta extends ChangedFlag implements org.pentaho.di.core.xml.XMLInterface, Cloneable
Constructor and Description |
---|
StepErrorMeta(org.pentaho.di.core.variables.VariableSpace variables,
Node node,
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
|
Modifier and Type | Method and Description |
---|---|
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) |
String |
getMaxErrors() |
String |
getMaxPercentErrors() |
String |
getMinPercentRows() |
String |
getNrErrorsValuename() |
StepMeta |
getSourceStep() |
StepMeta |
getTargetStep() |
String |
getXML() |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setErrorCodesValuename(String errorCodesValuename) |
void |
setErrorDescriptionsValuename(String errorDescriptionsValuename) |
void |
setErrorFieldsValuename(String errorFieldsValuename) |
void |
setMaxErrors(String maxErrors) |
void |
setMaxPercentErrors(String maxPercentErrors) |
void |
setMinPercentRows(String minRowsForPercent) |
void |
setNrErrorsValuename(String nrErrorsValuename) |
void |
setSourceStep(StepMeta sourceStep) |
void |
setTargetStep(StepMeta targetStep) |
addObserver, clearChanged, deleteObserver, hasChanged, notifyObservers, setChanged, setChanged
public static final String XML_TAG
public StepErrorMeta(org.pentaho.di.core.variables.VariableSpace space, StepMeta sourceStep)
sourceStep
- The source step that can send the error rowspublic StepErrorMeta(org.pentaho.di.core.variables.VariableSpace space, StepMeta sourceStep, StepMeta targetStep)
sourceStep
- The source step that can send the error rowstargetStep
- The target step to send the error rows topublic StepErrorMeta(org.pentaho.di.core.variables.VariableSpace space, StepMeta sourceStep, StepMeta targetStep, String nrErrorsValuename, String errorDescriptionsValuename, String errorFieldsValuename, String errorCodesValuename)
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)public StepErrorMeta clone()
public String getXML()
getXML
in interface org.pentaho.di.core.xml.XMLInterface
public String getErrorCodesValuename()
public void setErrorCodesValuename(String errorCodesValuename)
errorCodesValuename
- the error codes valuename to setpublic String getErrorDescriptionsValuename()
public void setErrorDescriptionsValuename(String errorDescriptionsValuename)
errorDescriptionsValuename
- the error descriptions valuename to setpublic String getErrorFieldsValuename()
public void setErrorFieldsValuename(String errorFieldsValuename)
errorFieldsValuename
- the error fields valuename to setpublic String getNrErrorsValuename()
public void setNrErrorsValuename(String nrErrorsValuename)
nrErrorsValuename
- the nr errors valuename to setpublic StepMeta getTargetStep()
public void setTargetStep(StepMeta targetStep)
targetStep
- the target step to setpublic StepMeta getSourceStep()
public void setSourceStep(StepMeta sourceStep)
sourceStep
- The source step can send the error rowspublic boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- the enabled flag to set: Is the error handling enabled?public org.pentaho.di.core.row.RowMetaInterface getErrorFields()
public org.pentaho.di.core.row.RowMetaInterface getErrorRowMeta(long nrErrors, String errorDescriptions, String fieldNames, String errorCodes)
public void addErrorRowData(Object[] row, int startIndex, long nrErrors, String errorDescriptions, String fieldNames, String errorCodes)
public String getMaxErrors()
public void setMaxErrors(String maxErrors)
maxErrors
- the maxErrors to setpublic String getMaxPercentErrors()
public void setMaxPercentErrors(String maxPercentErrors)
maxPercentErrors
- the maxPercentErrors to setpublic String getMinPercentRows()
public void setMinPercentRows(String minRowsForPercent)
minRowsForPercent
- the minRowsForPercent to set