Informatica常用组件使用.docx

上传人:b****3 文档编号:2967911 上传时间:2022-11-16 格式:DOCX 页数:43 大小:833.80KB
下载 相关 举报
Informatica常用组件使用.docx_第1页
第1页 / 共43页
Informatica常用组件使用.docx_第2页
第2页 / 共43页
Informatica常用组件使用.docx_第3页
第3页 / 共43页
Informatica常用组件使用.docx_第4页
第4页 / 共43页
Informatica常用组件使用.docx_第5页
第5页 / 共43页
点击查看更多>>
下载资源
资源描述

Informatica常用组件使用.docx

《Informatica常用组件使用.docx》由会员分享,可在线阅读,更多相关《Informatica常用组件使用.docx(43页珍藏版)》请在冰豆网上搜索。

Informatica常用组件使用.docx

Informatica常用组件使用

常用组件使用方法

表1中列出的是informatica中的所有组件。

不会在本文档中出现的会在组件名后标出。

表1

Aggregator

Active/

Connected

Performsaggregatecalculations.

ApplicationSourceQualifier

Active/

Connected

RepresentstherowsthattheIntegrationServicereadsfromanapplication,suchasanERPsource,whenitrunsasession.

Custom

ActiveorPassive/

Connected

CallsaprocedureinasharedlibraryorDLL.

Expression

Passive/

Connected

Calculatesavalue.

ExternalProcedure

Passive/

ConnectedorUnconnected

CallsaprocedureinasharedlibraryorintheCOMlayerofWindows.

Filter

Active/

Connected

Filtersdata.。

HTTPTransformation

Passive/Connected

ConnectstoanHTTPservertoreadorupdatedata.

Input

Passive/

Connected

Definesmappletinputrows.AvailableintheMappletDesigner.

Java

ActiveorPassive/

Connected

ExecutesuserlogiccodedinJava.Thebytecodefortheuserlogicisstoredintherepository.

Joiner

Active/

Connected

Joinsdatafromdifferentdatabasesorflatfilesystems.

Lookup

Passive/

ConnectedorUnconnected

Looksupvalues.

Normalizer

Active/

Connected

SourcequalifierforCOBOLsources.Canalsouseinthepipelinetonormalizedatafromrelationalorflatfilesources.

Output

Passive/

Connected

Definesmappletoutputrows.AvailableintheMappletDesigner.

Rank

Active/

Connected

Limitsrecordstoatoporbottomrange.

Router

Active/

Connected

Routesdataintomultipletransformationsbasedongroupconditions.

SequenceGenerator

Passive/

Connected

Generatesprimarykeys.

Sorter

Active/Connected

Sortsdatabasedonasortkey.

SourceQualifier

Active/

Connected

RepresentstherowsthattheIntegrationServicereadsfromarelationalorflatfilesourcewhenitrunsasession.

SQL

ActiveorPassive/Connected

ExecutesSQLqueriesagainstadatabase.

StoredProcedure

Passive/

ConnectedorUnconnected

Callsastoredprocedure.

TransactionControl

Active/

Connected

Definescommitandrollbacktransactions.

Union

Active/Connected

Mergesdatafromdifferentdatabasesorflatfilesystems.

UpdateStrategy

Active/

Connected

Determineswhethertoinsert,delete,update,orrejectrows.

XMLGenerator

Active/

Connected

ReadsdatafromoneormoreinputportsandoutputsXMLthroughasingleoutputport.

XMLParser

Active/

Connected

ReadsXMLfromoneinputportandoutputsdatatooneormoreoutputports.

XMLSourceQualifier

Active/

Connected

RepresentstherowsthattheIntegrationServicereadsfromanXMLsourcewhenitrunsasession.

Lookup

概要描述

获得一个关联的值。

例如:

源里包含employeeID,但你还需要employeename。

用于计算的植。

例如:

只是汇率或者个人所得税之类的固定数值,不是计算得出来的数据。

Updateslowlychangingdimensiontables。

主要是根据条件查出原表,若查出了,就把自己添加的标志位设为真,否则就设置为假,

Connectedorunconnected

Connected和unconnected的transformations的输入和输出是不同的,不同点如表2列出的。

表2

ConnectedLookup

UnconnectedLookup

从pipeline获得输入。

从另一个transformation的:

LKP的表达式获得输入。

使用静态或者动态cache。

使用静态cache。

Cache中包括所有的mapping中使用到的lookupcolumns(就是condition中的和被标记为输出的columns)。

Cache中包括所有condition中的、被标记为输出的columns以及被标记为returnport的。

同行能够返回多个columns或者加载到动态lookupcache中。

每行只能返回一个returnport(R)。

如果没有匹配的数据,IntegrationService会返回一个默认值。

如果是动态缓存(cache),会加入一个新的行或者放着他不管。

如果没有匹配的数据,IntegrationService会返回一个NULL。

如果有匹配的数据,IntegrationService回返回一个结果包括所有被设置为输出的值。

如果是动态缓存,IntegrationService会任意的修改一行或者放着它不管。

如果有匹配的数据,IntegrationService会返回一个被设置为returnport的值。

输出所有的被标记为output的符合条件的数据。

返回一个值到使用:

LKP调用它的表达式。

用户可以设置默认值。

用户不可以设置默认值。

Connected

下面是IntegrationService处理connectedLookuptransformation的过程:

1.一个connectedLookuptransformation通过pipeline从其他的transformation获得输入值。

2.为每个输入行,IntegrationService会通过lookupports和condition从源或者缓存中查询。

3.如果组件没有使用缓存或者使用的静态缓存,IntegrationService会使用lookupquery来返回值。

4.如果组件使用的动态缓存,当IntegrationService在缓存找不到这行,它会把这行插入到缓存中。

当IntegrationService找到这行,它会修改这行在缓存中或者什么都不做。

它标记这行是插入、修改或者是不做变动。

5.IntegrationService从查询中返回值到下一个transformation。

如果transformation使用动态缓存,你可以把这行通过Filter或者Routertransformation来过滤后在到目标中。

unconnected

●你可以在一个mapping中调用这个Lookuptransformation多次。

●下面的步骤描述了IntegrationService处理一个unconnectedLookuptransformation的过程:

1.一个unconnectedLookuptransformation从另一个transformation的一个:

LKP表达式的结果中获得输入值,例如一个UpdateStrategytransformation。

2.IntegrationService通过transformation中的lookupports和condition来查询。

3.IntegrationService返回一个值到Lookuptransformation的returnport中。

4.IntegrationService把值返回到:

LKP表达式中。

●步骤

1.添加inputports。

2.添加查询条件。

3.指定返回值。

4.从其他的组件中调用该lookup。

●用途

unconnectedlookups多数用于:

1.在一个表达式测试一个lookup的值。

2.在查询的基础上过滤。

3.标记行基于查询的结果,例如:

updatingslowlychangingdimensiontables。

4.调用同一个查找多次在一个mapping中。

Relationalorflatfilelookup

当你在建立一个Lookuptransformation时,你可以选择查询flatfile或者relationaltable。

Relational

你可以通过SQL的来override默认的SQL,这样可以你可以加where或者查询多个表。

flatfile

使用下面选项在使用flatfile时:

1.指定源是indir

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 法律文书 > 调解书

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1