public static final RowMetaAndData getResultRow( Result result, String upd, String ins, String del, String read ) { RowMetaAndData resultRow = new RowMetaAndData(); if ( upd != null && upd.length() > 0 ) { ValueMetaInterface meta = new ValueMetaInteger( upd ); meta.setLength( ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0 ); resultRow.addValue( meta, new Long( result.getNrLinesUpdated() ) ); } if ( ins != null && ins.length() > 0 ) { ValueMetaInterface meta = new ValueMetaInteger( ins ); meta.setLength( ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0 ); resultRow.addValue( meta, new Long( result.getNrLinesOutput() ) ); } if ( del != null && del.length() > 0 ) { ValueMetaInterface meta = new ValueMetaInteger( del ); meta.setLength( ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0 ); resultRow.addValue( meta, new Long( result.getNrLinesDeleted() ) ); } if ( read != null && read.length() > 0 ) { ValueMetaInterface meta = new ValueMetaInteger( read ); meta.setLength( ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0 ); resultRow.addValue( meta, new Long( result.getNrLinesRead() ) ); } return resultRow; }
public static final RowMetaAndData getResultRow( Result result, String upd, String ins, String del, String read ) { RowMetaAndData resultRow = new RowMetaAndData(); if ( upd != null && upd.length() > 0 ) { ValueMetaInterface meta = new ValueMetaInteger( upd ); meta.setLength( ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0 ); resultRow.addValue( meta, new Long( result.getNrLinesUpdated() ) ); } if ( ins != null && ins.length() > 0 ) { ValueMetaInterface meta = new ValueMetaInteger( ins ); meta.setLength( ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0 ); resultRow.addValue( meta, new Long( result.getNrLinesOutput() ) ); } if ( del != null && del.length() > 0 ) { ValueMetaInterface meta = new ValueMetaInteger( del ); meta.setLength( ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0 ); resultRow.addValue( meta, new Long( result.getNrLinesDeleted() ) ); } if ( read != null && read.length() > 0 ) { ValueMetaInterface meta = new ValueMetaInteger( read ); meta.setLength( ValueMetaInterface.DEFAULT_INTEGER_LENGTH, 0 ); resultRow.addValue( meta, new Long( result.getNrLinesRead() ) ); } return resultRow; }
value = 0; if ( previousResult != null ) { value = previousResult.getNrLinesUpdated();
/** * Add the numbers of lines from a different result to this result * * @param res * The Result object from which to add */ public void add( Result res ) { nrLinesInput += res.getNrLinesInput(); nrLinesOutput += res.getNrLinesOutput(); nrLinesRead += res.getNrLinesRead(); nrLinesWritten += res.getNrLinesWritten(); nrLinesUpdated += res.getNrLinesUpdated(); nrLinesRejected += res.getNrLinesRejected(); nrLinesDeleted += res.getNrLinesDeleted(); nrErrors += res.getNrErrors(); nrFilesRetrieved += res.getNrFilesRetrieved(); resultFiles.putAll( res.getResultFiles() ); logChannelId = res.getLogChannelId(); logText = res.getLogText(); rows.addAll( res.getRows() ); }
tip.append( "Lines output : " ).append( result.getNrLinesOutput() ).append( Const.CR ); if ( result.getNrLinesUpdated() > 0 ) { tip.append( "Lines updated : " ).append( result.getNrLinesUpdated() ).append( Const.CR );
break; case LINES_UPDATED: value = new Long( result != null ? result.getNrLinesUpdated() : 0 ); break; case LINES_INPUT:
messageText .append( BaseMessages.getString( PKG, "JobMail.Log.Comment.LinesUpdated" ) + " : " ).append( result.getNrLinesUpdated() ).append( endRow ); messageText .append( BaseMessages.getString( PKG, "JobMail.Log.Comment.LinesRejected" ) + " : " ).append(
Long lines_input = new Long( result.getNrLinesInput() ); Long lines_output = new Long( result.getNrLinesOutput() ); Long lines_updated = new Long( result.getNrLinesUpdated() ); Long lines_rejected = new Long( result.getNrLinesRejected() ); Long lines_read = new Long( result.getNrLinesRead() );
outputRow[ idx++ ] = Long.valueOf( result.getNrLinesUpdated() );
private void copyResult( Trans trans ) { Result result = trans.getResult(); setLinesInput( result.getNrLinesInput() ); setLinesOutput( result.getNrLinesOutput() ); setLinesRead( result.getNrLinesRead() ); setLinesWritten( result.getNrLinesWritten() ); setLinesUpdated( result.getNrLinesUpdated() ); setLinesRejected( result.getNrLinesRejected() ); setErrors( result.getNrErrors() ); }
result.setNrLinesUpdated( result.getNrLinesUpdated() + step.getLinesUpdated() );
break; case LINES_UPDATED: value = new Long( result.getNrLinesUpdated() ); break; case LINES_REJECTED:
break; case LINES_UPDATED: value = result == null ? null : new Long( result.getNrLinesUpdated() ); break; case LINES_REJECTED:
item.setText( 4, "" + result.getNrLinesInput() ); item.setText( 5, "" + result.getNrLinesOutput() ); item.setText( 6, "" + result.getNrLinesUpdated() ); item.setText( 7, "" + result.getNrLinesRejected() ); item.setText( 8, "" + result.getNrErrors() );
outputRow[idx++] = Long.valueOf( result.getNrLinesUpdated() );
setLinesInput( result.getNrLinesInput() ); setLinesOutput( result.getNrLinesOutput() ); setLinesUpdated( result.getNrLinesUpdated() ); setLinesRejected( result.getNrLinesRejected() );
public void run() { Trans.monitorClusteredTransformation( log, transSplitter, null ); Result result = Trans.getClusteredTransformationResult( log, transSplitter, null ); log.logBasic( "-----------------------------------------------------" ); log.logBasic( "Got result back from clustered transformation:" ); log.logBasic( transMeta.toString() + "-----------------------------------------------------" ); log.logBasic( transMeta.toString() + " Errors : " + result.getNrErrors() ); log.logBasic( transMeta.toString() + " Input : " + result.getNrLinesInput() ); log.logBasic( transMeta.toString() + " Output : " + result.getNrLinesOutput() ); log.logBasic( transMeta.toString() + " Updated : " + result.getNrLinesUpdated() ); log.logBasic( transMeta.toString() + " Read : " + result.getNrLinesRead() ); log.logBasic( transMeta.toString() + " Written : " + result.getNrLinesWritten() ); log.logBasic( transMeta.toString() + " Rejected : " + result.getNrLinesRejected() ); log.logBasic( transMeta.toString() + "-----------------------------------------------------" ); } } ).start();
assertEquals( internalResult.getNrLinesOutput(), resultsRow[ 5 ] ); assertEquals( internalResult.getNrLinesRejected(), resultsRow[ 6 ] ); assertEquals( internalResult.getNrLinesUpdated(), resultsRow[ 7 ] ); assertEquals( internalResult.getNrLinesDeleted(), resultsRow[ 8 ] ); assertEquals( internalResult.getNrFilesRetrieved(), resultsRow[ 9 ] );