コード例 #1
0
 public StreamInterface findInfoStream(StepMeta infoStep) {
   for (StreamInterface stream : getInfoStreams()) {
     if (infoStep.equals(stream.getStepMeta())) {
       return stream;
     }
   }
   return null;
 }
コード例 #2
0
 public StreamInterface findTargetStream(StepMeta targetStep) {
   for (StreamInterface stream : getTargetStreams()) {
     if (targetStep.equals(stream.getStepMeta())) {
       return stream;
     }
   }
   return null;
 }
コード例 #3
0
 /**
  * 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);
 }