public StepIOMetaInterface getStepIOMeta() { return getStepIOMeta( true ); // Default to creating step IO Meta }
@Override public StepIOMetaInterface getStepIOMeta() { if ( !checkClassCookings( getLog() ) ) { return super.getStepIOMeta(); } try { Method getStepIOMeta = cookedTransformClass.getMethod( "getStepIOMeta", UserDefinedJavaClassMeta.class ); if ( getStepIOMeta != null ) { StepIOMetaInterface stepIoMeta = (StepIOMetaInterface) getStepIOMeta.invoke( null, this ); if ( stepIoMeta == null ) { return super.getStepIOMeta(); } else { return stepIoMeta; } } else { return super.getStepIOMeta(); } } catch ( Exception e ) { e.printStackTrace(); return super.getStepIOMeta(); } }
/** * Returns the Input/Output metadata for this step. The generator step only produces output, does not accept input! */ public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, false, false ); StreamInterface stream = new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "FuzzyMatchMeta.InfoStream.Description" ), StreamIcon.INFO, null ); ioMeta.addStream( stream ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. The generator step only produces output, does not accept input! */ public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, false, false ); StreamInterface stream = new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "TableInputMeta.InfoStream.Description" ), StreamIcon.INFO, null ); ioMeta.addStream( stream ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. The generator step only produces output, does not accept input! */ @Override public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, false, false ); StreamInterface stream = new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "StreamLookupMeta.InfoStream.Description" ), StreamIcon.INFO, null ); ioMeta.addStream( stream ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. */ public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, false, false ); ioMeta.addStream( new Stream( StreamType.TARGET, null, BaseMessages.getString( PKG, "FilterRowsMeta.InfoStream.True.Description" ), StreamIcon.TRUE, null ) ); ioMeta.addStream( new Stream( StreamType.TARGET, null, BaseMessages.getString( PKG, "FilterRowsMeta.InfoStream.False.Description" ), StreamIcon.FALSE, null ) ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. The generator step only produces output, does not accept input! */ public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, false, false ); ioMeta.addStream( new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "MergeJoinMeta.InfoStream.FirstStream.Description" ), StreamIcon.INFO, null ) ); ioMeta.addStream( new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "MergeJoinMeta.InfoStream.SecondStream.Description" ), StreamIcon.INFO, null ) ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. */ public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, false, false ); ioMeta.addStream( new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "AppendMeta.InfoStream.FirstStream.Description" ), StreamIcon.INFO, null ) ); ioMeta.addStream( new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "AppendMeta.InfoStream.SecondStream.Description" ), StreamIcon.INFO, null ) ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. */ public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, false, false ); ioMeta.addStream( new Stream( StreamType.TARGET, null, BaseMessages.getString( PKG, "JavaFilterMeta.InfoStream.True.Description" ), StreamIcon.TRUE, null ) ); ioMeta.addStream( new Stream( StreamType.TARGET, null, BaseMessages.getString( PKG, "JavaFilterMeta.InfoStream.False.Description" ), StreamIcon.FALSE, null ) ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. */ @Override public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, false, false ); ioMeta.addStream( new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "MergeRowsMeta.InfoStream.FirstStream.Description" ), StreamIcon.INFO, null ) ); ioMeta.addStream( new Stream( StreamType.INFO, null, BaseMessages.getString( PKG, "MergeRowsMeta.InfoStream.SecondStream.Description" ), StreamIcon.INFO, null ) ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. */ public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, false, false, true, false ); // Add the info sources... // for ( Validation validation : validations ) { StreamInterface stream = new Stream( StreamType.INFO, validation.getSourcingStep(), BaseMessages .getString( PKG, "ValidatorMeta.InfoStream.ValidationInput.Description", Const.NVL( validation .getName(), "" ) ), StreamIcon.INFO, validation ); ioMeta.addStream( stream ); } setStepIOMeta( ioMeta ); } return ioMeta; }
@Override public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, true, true, false, true, false ); ioMeta.addStream( new Stream( StreamType.TARGET, executionResultTargetStepMeta, BaseMessages.getString( PKG, "JobExecutorMeta.ResultStream.Description" ), StreamIcon.TARGET, null ) ); ioMeta.addStream( new Stream( StreamType.TARGET, resultRowsTargetStepMeta, BaseMessages.getString( PKG, "JobExecutorMeta.ResultRowsStream.Description" ), StreamIcon.TARGET, null ) ); ioMeta.addStream( new Stream( StreamType.TARGET, resultFilesTargetStepMeta, BaseMessages.getString( PKG, "JobExecutorMeta.ResultFilesStream.Description" ), StreamIcon.TARGET, null ) ); setStepIOMeta( ioMeta ); } return ioMeta; }
/** * Returns the Input/Output metadata for this step. */ public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { ioMeta = new StepIOMeta( true, false, false, false, false, true ); // Add the targets... // for ( SwitchCaseTarget target : caseTargets ) { StreamInterface stream = new Stream( StreamType.TARGET, target.caseTargetStep, BaseMessages.getString( PKG, "SwitchCaseMeta.TargetStream.CaseTarget.Description", Const.NVL( target.caseValue, "" ) ), StreamIcon.TARGET, target ); ioMeta.addStream( stream ); } // Add the default target step as a stream // if ( getDefaultTargetStep() != null ) { ioMeta.addStream( new Stream( StreamType.TARGET, getDefaultTargetStep(), BaseMessages.getString( PKG, "SwitchCaseMeta.TargetStream.Default.Description" ), StreamIcon.TARGET, null ) ); } setStepIOMeta( ioMeta ); } return ioMeta; }
StepIOMetaInterface cloneIOMeta = clone.getStepIOMeta(); assertNotNull( cloneIOMeta ); assertEquals( ioMeta.isInputAcceptor(), cloneIOMeta.isInputAcceptor() );
assertEquals( meta.parentStepMeta, clone.parentStepMeta ); StepIOMetaInterface cloneIOMeta = clone.getStepIOMeta(); assertNotNull( cloneIOMeta ); assertEquals( ioMeta.isInputAcceptor(), cloneIOMeta.isInputAcceptor() );