本文整理汇总了Java中org.pentaho.di.trans.TransExecutionConfiguration.setPreviousResult方法的典型用法代码示例。如果您正苦于以下问题:Java TransExecutionConfiguration.setPreviousResult方法的具体用法?Java TransExecutionConfiguration.setPreviousResult怎么用?Java TransExecutionConfiguration.setPreviousResult使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.pentaho.di.trans.TransExecutionConfiguration
的用法示例。
在下文中一共展示了TransExecutionConfiguration.setPreviousResult方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: runSubtransformationClustered
import org.pentaho.di.trans.TransExecutionConfiguration; //导入方法依赖的package包/类
/**
* This test check passing rows to sub-transformation executed on cluster
* See PDI-10704 for details
* @throws Exception
*/
public void runSubtransformationClustered() throws Exception {
TransMeta transMeta =
loadTransMetaReplaceSlavesInCluster(
clusterGenerator, "test/org/pentaho/di/cluster/test-subtrans-clustered.ktr" );
TransExecutionConfiguration config = createClusteredTransExecutionConfiguration();
Result prevResult = new Result();
prevResult.setRows( getSampleRows() );
config.setPreviousResult( prevResult );
TransSplitter transSplitter = Trans.executeClustered( transMeta, config );
LogChannel logChannel = createLogChannel( "cluster unit test <runSubtransformationClustered>" );
long nrErrors = Trans.monitorClusteredTransformation( logChannel, transSplitter, null, 1 );
assertEquals( 0L, nrErrors );
String result = loadFileContent( transMeta, "${java.io.tmpdir}/test-subtrans-clustered.txt" );
assertEqualsIgnoreWhitespacesAndCase( "10", result );
}