private RowSet t1 = null;//业务表步骤
private RowSet t2 = null;//删除步骤
public boolean processRow(StepMetaInterface smi, StepDataInterface sdi) throws KettleException{
if (first) {
t1 = findTargetRowSet("update");//业务表步骤
t2 = findTargetRowSet("delete");//数据删除步骤
first = false;
}
Object[] r = getRow();
if (r == null) {
setOutputDone();
return false;
}
String actionType = get(Fields.In, "action_type").getString(r);
if("3".equals(actionType)){
putRowTo(data.outputRowMeta, r,t2);//删除
}else{
putRowTo(data.outputRowMeta, r,t1);
}
return true;
}