public String[] getInfoSteps() { String[] infoSteps = getStepIOMeta().getInfoStepnames(); // Return null instead of empty array to preserve existing behavior return infoSteps.length == 0 ? null : infoSteps; }
public String[] getInfoSteps() { String[] infoSteps = getStepIOMeta().getInfoStepnames(); // Return null instead of empty array to preserve existing behavior return infoSteps.length == 0 ? null : infoSteps; }
public String[] getInfoSteps() { String[] infoSteps = getStepIOMeta().getInfoStepnames(); // Return null instead of empty array to preserve existing behavior return infoSteps.length == 0 ? null : infoSteps; }
/** * Determines whether or not a certain step is informative. This means that the previous step is sending information * to this step, but only informative. This means that this step is using the information to process the actual stream * of data. We use this in StreamLookup, TableInput and other types of steps. * * @param this_step * The step that is receiving information. * @param prev_step * The step that is sending information * @return true if prev_step if informative for this_step. */ public boolean isStepInformative( StepMeta this_step, StepMeta prev_step ) { String[] infoSteps = this_step.getStepMetaInterface().getStepIOMeta().getInfoStepnames(); if ( infoSteps == null ) { return false; } for ( int i = 0; i < infoSteps.length; i++ ) { if ( prev_step.getName().equalsIgnoreCase( infoSteps[i] ) ) { return true; } } return false; }
/** * Get the informational steps for a certain step. An informational step is a step that provides information for * lookups, etc. * * @param stepMeta * The name of the step * @return An array of the informational steps found */ public StepMeta[] getInfoStep( StepMeta stepMeta ) { String[] infoStepName = stepMeta.getStepMetaInterface().getStepIOMeta().getInfoStepnames(); if ( infoStepName == null ) { return null; } StepMeta[] infoStep = new StepMeta[infoStepName.length]; for ( int i = 0; i < infoStep.length; i++ ) { infoStep[i] = findStep( infoStepName[i] ); } return infoStep; }
String[] infoStepnames = ioMeta.getInfoStepnames();
masterTargetStep.getStepMetaInterface().getStepIOMeta().getInfoStepnames(); if ( infoStepNames != null ) { StepMeta[] is = new StepMeta[infoStepNames.length]; String[] infoStepNames = slaveStep.getStepMetaInterface().getStepIOMeta().getInfoStepnames(); if ( infoStepNames != null ) { StepMeta[] is = new StepMeta[infoStepNames.length]; TransMeta slave = getSlaveTransformation( clusterSchema, slaveServer ); StepMeta slaveStep = slave.findStep( originalStep.getName() ); String[] infoStepNames = slaveStep.getStepMetaInterface().getStepIOMeta().getInfoStepnames(); if ( infoStepNames != null ) { StepMeta[] is = new StepMeta[infoStepNames.length];
public void run() { try { // collect main input fields RowMetaInterface inputFields = transMeta.getPrevStepFields(input.getParentStepMeta()); // collect fields from input steps HashMap<String, RowMetaInterface> infoStepFields = new HashMap<String, RowMetaInterface>(); for (String step : input.getStepIOMeta().getInfoStepnames()) { infoStepFields.put(step, transMeta.getStepFields(step)); } // collect output fields RowMetaInterface outputFields = transMeta.getStepFields(stepname); RowMetaInterface errorFields = null; if (input.getParentStepMeta().isDoingErrorHandling()) { errorFields = input.getParentStepMeta().getStepErrorMeta().getErrorFields(); } setTreeFields(inputFields, infoStepFields, outputFields, errorFields); } catch (KettleException e) { logError(BaseMessages.getString(PKG, "System.Dialog.GetFieldsFailed.Message")); } } };