Informatica Lookup Transformation组件的Connect 与Unconnected类型用法

 

Informatica Lookup Transformation组件的Connect 与Unconnected类型用法及区别:下面是通一个Lookup在不同Mapping中的使用:

1. Connect lookup: 可以返回多个输出port的字段值,需要用连接线将输入、输出port连接到其他组件。

    

2. Unconnected lookup 只能返回一个port的字段值,无需连接线连接到其他组件,只需直接在Expression表达式中像调用函数函数那样调用它即可获得返回值。

Connected and Unconnected Lookups

You can configure a connected Lookup transformation or an unconnected Lookup transformation. A connected Lookup transformation is a transformation that has input and output ports that you connect to other transformations in a mapping. An unconnected Lookup transformation appears in the mapping, but is not connected to other transformations.

An unconnected Lookup transformation receives input from the result of a :LKP expression in a transformation such as an Expression transformation or Aggregator transformation. The :LKP expression passes parameters to the Lookup transformation and receives a result back from the lookup. The :LKP expression can pass lookup results to another expression in the transformation to filter results.

The following table lists the differences between connected and unconnected lookups:

Connected Lookup

Unconnected Lookup

Receives input values directly from the pipeline.

Receives input values from the result of a :LKP expression in another transformation.

Use a dynamic or static cache.

Use a static cache.

Cache includes the lookup source columns in the lookup condition and the lookup source columns that are output ports.

Cache includes all lookup and output ports in the lookup condition and the lookup/return port.

Returns multiple columns from the same row or insert into the dynamic lookup cache.

Returns one column from each row to a return port.

If there is no match for the lookup condition, the Integration Service returns the default value for all output ports. If you configure dynamic caching, the Integration Service inserts rows into the cache or leaves it unchanged.

If there is no match for the lookup condition, the Integration Service returns NULL.

If there is a match for the lookup condition, the Integration Service returns the result of the lookup condition for all lookup/output ports. If you configure dynamic caching, the Integration Service either updates the row the in the cache or leaves the row unchanged.

If a match occurs for the lookup condition, the Integration Service returns the result of the lookup condition to the return port.

Passes multiple output values to another transformation. Link lookup/output ports to another transformation.

Returns one output value to another transformation. The Lookup transformation return port passes the value to the port that contains the :LKP expression in the other transformation.

Supports user-defined default values.

Does not support user-defined default values.

 

转载于:https://www.cnblogs.com/yelisen2011/p/4884817.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Informatica lookup组件可以通过变量来获取值。 在Informatica PowerCenter中,可以使用参数变量(Parameter Variable)来存储和传递值。这些参数变量可以在Mapping或Session级别定义,并在整个工作流中使用。 要在lookup组件中获取变量值,可以按照以下步骤操作: 1. 在Mapping或Session Properties窗口中,创建一个参数变量。可以给变量指定一个名称,并选择适当的数据类型和默认值。 2. 在Mapping或Session中的lookup组件中,打开编辑对话框。在"Source"选项卡下,选择"Variable Port"。 3. 在Variable Port对话框中,选择要从参数变量中获取值的端口。对于查找查询的输入端口和条件端口,可以选择一个或多个端口。 4. 在Variable Port对话框中,选择"Variable/Port"列中对应端口的"Variable"选项。然后,选择参数变量下拉菜单中的特定变量。 5. 完成后,点击"确定"按钮保存更改。 通过以上步骤,lookup组件就可以获取参数变量中存储的值,并在查找查询中使用。这样,可以根据变量的值来动态调整lookup组件的行为,提高数据转换和处理的灵活性和可重用性。 在工作流执行过程中,可以通过修改参数变量的值来改变lookup组件的行为。这样,在相同的Mapping或Session中可以多次使用lookup组件,每次使用时都可以根据不同的变量值来决定查询条件或输入值,以满足不同的业务需求。 这就是如何在Informatica lookup组件中获取变量值的方法。通过使用参数变量,可以灵活地控制lookup组件的行为,提高数据处理的灵活性和可配置性。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值