public StreamInterface findInfoStream(StepMeta infoStep) { for (StreamInterface stream : getInfoStreams()) { if (infoStep.equals(stream.getStepMeta())) { return stream; } } return null; }
public StreamInterface findTargetStream(StepMeta targetStep) { for (StreamInterface stream : getTargetStreams()) { if (targetStep.equals(stream.getStepMeta())) { return stream; } } return null; }
/** * Standard method to return one or more SQLStatement objects that the step needs in order to work * correctly. This can mean "create table", "create index" statements but also "alter table ... * add/drop/modify" statements. * * @return The SQL Statements for this step or null if an error occurred. If nothing has to be * done, the SQLStatement.getSQL() == null. * @param transMeta TransInfo object containing the complete transformation * @param stepMeta StepMeta object containing the complete step * @param prev Row containing meta-data for the input fields (no data) */ public SQLStatement getSQLStatements( TransMeta transMeta, StepMeta stepMeta, RowMetaInterface prev) throws KettleStepException { // default: this doesn't require any SQL statements to be executed! return new SQLStatement(stepMeta.getName(), null, null); }