public RowSet findOutputRowSetImpl( String targetStep ) throws KettleStepException { return super.findOutputRowSet( targetStep ); }
public RowSet findOutputRowSetImpl( String from, int fromcopy, String to, int tocopy ) { return super.findOutputRowSet( from, fromcopy, to, tocopy ); }
/** * Find output row set. * * @param targetStep the target step * @return the row set * @throws KettleStepException the kettle step exception */ public RowSet findOutputRowSet( String targetStep ) throws KettleStepException { // Check to see that "targetStep" only runs in a single copy // Otherwise you'll see problems during execution. // StepMeta targetStepMeta = transMeta.findStep( targetStep ); if ( targetStepMeta == null ) { throw new KettleStepException( BaseMessages.getString( PKG, "BaseStep.Exception.TargetStepToWriteToDoesntExist", targetStep ) ); } if ( targetStepMeta.getCopies() > 1 ) { throw new KettleStepException( BaseMessages.getString( PKG, "BaseStep.Exception.TargetStepToWriteToCantRunInMultipleCopies", targetStep, Integer .toString( targetStepMeta.getCopies() ) ) ); } return findOutputRowSet( getStepname(), getCopy(), targetStep, 0 ); }
public StepStreamWriter(SimpleExecutionModel model, String srcStepName) throws KettleStepException { this.model = model; this.step = model.getStep(); this.data = model.getData(); this.rowList = new LinkedList<Object[]>(); rs = step.findOutputRowSet(srcStepName); rowSize = data.outputRowMeta.size(); inRow = new RowMeta(); }