Pentaho Spoon-根据字段内容输出到多个文件 [英] Pentaho Spoon - Output to multiple files based on field content

查看:465
本文介绍了Pentaho Spoon-根据字段内容输出到多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试根据特定字段的值将pentaho转换的结果拆分为多个文件,而没有任何运气.

I have been attempting splitting the results of a pentaho transform into multiple files based on the value of a specific field without any luck.

例如结果集包含以下内容:

E.g. a result set containing the following:

SURNAME,FIRSTNAME,COUNTRY

SURNAME, FIRSTNAME, COUNTRY

奥巴马,美国巴拉克

Cameron,戴维,英国

Cameron, David, UK

布莱尔,托尼,英国

将创建2个输出文件:

USA.txt-包含奥巴马的详细信息,UK.txt-包含其他两行

USA.txt - containing Obama's details and UK.txt - containing the other 2 rows

任何指针将不胜感激.

推荐答案

您可以基于国家/地区"字段构造一个字段作为输出文件名.在文本文件输出"步骤中,将新构造的字段作为输出文件名发送.

You can construct a field act as output filename based on Country field. Sent the new constructed field as output filenames in "Text File Output" step.

请参见下面的流程屏幕截图:

See the flow screenshot below :

您还可以从此处 http://pentaho.phi-integration下载解决方案文件. .com/kettle/kettle-files .

希望这对您有帮助...

Hope this helps...

恐龙

这篇关于Pentaho Spoon-根据字段内容输出到多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆