/** * @return if error handling is supported for this step, if error handling is defined and a target step is set */ public boolean isDoingErrorHandling() { return stepMetaInterface.supportsErrorHandling() && stepErrorMeta != null && stepErrorMeta.getTargetStep() != null && stepErrorMeta.isEnabled(); }
/** * Gets the status description. * * @return the status description */ public String getStatusDescription() { return getStatus().getDescription(); }
/** * In case of getRow, we receive data from previous steps through the input rowset. In case we split the stream, we * have to copy the data to the alternate splits: rowsets 1 through n. */ @Override public Object[] getRow() throws KettleException { return getRowHandler().getRow(); }
public boolean chosesTargetSteps() { if ( getStepMetaInterface() != null ) { List<StreamInterface> targetStreams = getStepMetaInterface().getStepIOMeta().getTargetStreams(); return targetStreams.isEmpty(); } return false; }
public void setChanged( boolean ch ) { BaseStepMeta bsi = (BaseStepMeta) this.getStepMetaInterface(); if ( bsi != null ) { bsi.setChanged( ch ); } }
@Override public Object clone() { Object retval = super.clone(); return retval; }
public MQTTClientBuilder withStep( StepInterface step ) { this.logChannel = step.getLogChannel(); this.stepName = step.getStepMeta().getName(); return this; }
public boolean hasChanged() { StepMetaInterface bsi = this.getStepMetaInterface(); return bsi != null ? bsi.hasChanged() : false; }
public void setChanged() { StepMetaInterface bsi = this.getStepMetaInterface(); if ( bsi != null ) { bsi.setChanged(); } }
/** * Checks whether the transformation has repository references. * * @return true if the transformation has repository references, false otherwise */ public boolean hasRepositoryReferences() { for ( StepMeta stepMeta : steps ) { if ( stepMeta.getStepMetaInterface().hasRepositoryReferences() ) { return true; } } return false; }
/** * Looks up the references after a repository import. * * @param repository * the repository to reference. * @throws KettleException * the kettle exception */ public void lookupRepositoryReferences( Repository repository ) throws KettleException { for ( StepMeta stepMeta : steps ) { stepMeta.getStepMetaInterface().lookupRepositoryReferences( repository ); } }
public final DatabaseMeta[] getUsedDatabaseConnections() { if ( databaseMeta != null ) { return new DatabaseMeta[]{ databaseMeta }; } else { return super.getUsedDatabaseConnections(); } }
protected StepInjectionMetaEntry createStepMetaInjectionEntry( StepMetaInjectionEnumEntry entry ) { StepInjectionMetaEntry stepInjectionMetaEntry = new StepInjectionMetaEntry( entry.name(), entry.getValueType(), entry.getDescription() ); return stepInjectionMetaEntry; }
public void updateMethod( String method ) throws KettlePluginException { stepMeta.getStepPartitioningMeta().setMethod( method ); }
public void updateMethodType( int methodType ) { stepMeta.getStepPartitioningMeta().setMethodType( methodType ); }
public boolean isRepartitioning() { if ( !isPartitioned() && isTargetPartitioned() ) { return true; } if ( isPartitioned() && isTargetPartitioned() && !stepPartitioningMeta.equals( targetStepPartitioningMeta ) ) { return true; } return false; }
/** * putRowTo is used to put a row in a certain specific RowSet. * * @param rowMeta The row meta-data to put to the destination RowSet. * @param row the data to put in the RowSet * @param rowSet the RoWset to put the row into. * @throws KettleStepException In case something unexpected goes wrong */ public void putRowTo( RowMetaInterface rowMeta, Object[] row, RowSet rowSet ) throws KettleStepException { getRowHandler().putRowTo( rowMeta, row, rowSet ); }
/** * Gets the row from. * * @param rowSet the row set * @return the row from * @throws KettleStepException the kettle step exception */ public Object[] getRowFrom( RowSet rowSet ) throws KettleStepException { return getRowHandler().getRowFrom( rowSet ); }
public DatabaseMeta[] getUsedDatabaseConnections() { if ( databaseMeta != null ) { return new DatabaseMeta[] { databaseMeta }; } else { return super.getUsedDatabaseConnections(); } }