kettle 3:java调用transformation
?
* 调用本地trans * * @param transFileName * trans文件路径 * @throws KettleException */public void callNativeTrans(String transFileName) throws KettleException {// 初始化EnvUtil.environmentInit();StepLoader.init();// 转换元对象TransMeta transMeta = new TransMeta(transFileName);// 转换Trans trans = new Trans(transMeta);// 执行转换trans.execute(null);// 等待转换执行结束trans.waitUntilFinished();}