public static StepIOMetaInterface getStepIOMeta( UserDefinedJavaClassMeta meta ) { StepIOMetaInterface ioMeta = new StepIOMeta( true, true, true, false, true, true ); for ( InfoStepDefinition stepDefinition : meta.getInfoStepDefinitions() ) { ioMeta.addStream( new Stream( StreamType.INFO, stepDefinition.stepMeta, stepDefinition.description, StreamIcon.INFO, null ) ); } for ( TargetStepDefinition stepDefinition : meta.getTargetStepDefinitions() ) { ioMeta.addStream( new Stream( StreamType.TARGET, stepDefinition.stepMeta, stepDefinition.description, StreamIcon.TARGET, null ) ); } 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, "TransExecutorMeta.ResultStream.Description" ), StreamIcon.TARGET, null ) ); ioMeta.addStream( new Stream( StreamType.TARGET, outputRowsSourceStepMeta, BaseMessages.getString( PKG, "TransExecutorMeta.ResultRowsStream.Description" ), StreamIcon.TARGET, null ) ); ioMeta.addStream( new Stream( StreamType.TARGET, resultFilesTargetStepMeta, BaseMessages.getString( PKG, "TransExecutorMeta.ResultFilesStream.Description" ), StreamIcon.TARGET, null ) ); ioMeta.addStream( new Stream( StreamType.TARGET, executorsOutputStepMeta, BaseMessages.getString( PKG, "TransExecutorMeta.ExecutorOutputStream.Description" ), StreamIcon.OUTPUT, null ) ); 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; }
@Override public void searchInfoAndTargetSteps( List<StepMeta> steps ) { StepIOMetaInterface ioMeta = getStepIOMeta(); ioMeta.getInfoStreams().clear(); for ( int i = 0; i < inputSteps.length; i++ ) { String inputStepName = inputSteps[i]; if ( i >= ioMeta.getInfoStreams().size() ) { ioMeta.addStream( new Stream( StreamType.INFO, StepMeta.findStep( steps, inputStepName ), BaseMessages.getString( PKG, "MultiMergeJoin.InfoStream.Description" ), StreamIcon.INFO, inputStepName ) ); } } }
/** * 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. */ 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. */ @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; }
public Object clone() { MergeJoinMeta retval = (MergeJoinMeta) super.clone(); int nrKeys1 = keyFields1.length; int nrKeys2 = keyFields2.length; retval.allocate( nrKeys1, nrKeys2 ); System.arraycopy( keyFields1, 0, retval.keyFields1, 0, nrKeys1 ); System.arraycopy( keyFields2, 0, retval.keyFields2, 0, nrKeys2 ); StepIOMetaInterface stepIOMeta = new StepIOMeta( true, true, false, false, false, false ); List<StreamInterface> infoStreams = getStepIOMeta().getInfoStreams(); for ( StreamInterface infoStream : infoStreams ) { stepIOMeta.addStream( new Stream( infoStream ) ); } retval.setStepIOMeta( stepIOMeta ); return retval; }
streamDescription = BaseMessages.getString( PKG, "MultiMergeJoin.InfoStream.Description" ); stream = new Stream( StreamType.INFO, null, streamDescription, StreamIcon.INFO, null ); stepIOMeta.addStream( stream );
/** * 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. 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! */ 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. */ 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; }
@Override public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = super.getStepIOMeta( false ); if ( ioMeta == null ) { // TODO Create a dynamic StepIOMeta so that we can more easily manipulate the info streams? ioMeta = new StepIOMeta( true, true, true, false, true, false ); for ( MappingIODefinition def : inputMappings ) { if ( isInfoMapping( def ) ) { Stream stream = new Stream( StreamType.INFO, def.getInputStep(), BaseMessages.getString( PKG, "MappingMeta.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, 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; }
doReturn( refStepName ).when( refStepMeta ).getName(); StreamInterface stream = new Stream( StreamInterface.StreamType.INFO, refStepMeta, null, null, refStepName ); ioMeta.addStream( stream ); meta.repository = repository; meta.parentStepMeta = stepMeta;
@Override public StepIOMetaInterface getStepIOMeta() { StepIOMetaInterface ioMeta = new StepIOMeta(true, true, true, false, !infoSteps.isEmpty(), !targetSteps.isEmpty()); for (RoleStepMeta step : infoSteps) { ioMeta.addStream(new Stream(StreamType.INFO, step.getStepMeta(), step.getRoleName(), StreamIcon.INFO, null)); } for (RoleStepMeta step : targetSteps) { ioMeta.addStream(new Stream(StreamType.TARGET, step.getStepMeta(), step.getRoleName(), StreamIcon.TARGET, null)); } return ioMeta; }