基于 CDS 的数据提取 CDC增量处理

参考资料:

基于 CDS 的数据提取 - 第 II 部分 增量处理 - SAP Community --- CDS based data extraction - Part II Delta Handling - SAP Community

单表CDC增量配置

@Analytics:{

    dataCategory: #DIMENSION,

    dataExtraction: {

       enabled: true,

       delta.changeDataCapture: {

            automatic : true

        }

      }

}

多表CDC增量配置

@Analytics:{

    dataCategory: #DIMENSION

    dataExtraction: {

       enabled: true,

       delta.changeDataCapture: {

         mapping : [ {

           table : 'name of table',

           role : #MAIN|#LEFT_OUTER_TO_ONE,

           viewElement : ['list of CDS view elements'],

           tableElement: ['list of table fields']

         }, ...

        ]

      }

   }

}

1. @analytics.dataExtraction.delta.changeDataCapture.mapping.table

This annotation serves to identify the name of the underlying table(s) to be logged.

此批注用于标识要记录的基础表的名称。

2. @analytics.dataExtraction.delta.changeDataCapture.mapping.role

This annotation is used for identifying the role of a participating table

此注释用于标识参与表的角色

The main table receives the value #MAIN. The key(s) of the CDS view correspond(s) exactly to the key(s) of the underlying main table to be logged. The outer table(s) receive(s) the value #LEFT_OUTER_TO_ONE_JOIN.

主表接收值 #MAIN。CDS 视图的键与要记录的基础主表的键完全对应。外部表接收值 #LEFT_OUTER_TO_ONE_JOIN。

3. @analytics.dataExtraction.delta.changeDataCapture.mapping.viewElement

In case of the main table, (identified by role: #MAIN), this list enumerates all exposed CDS view element names corresponding to the key fields of the main table

对于主表(由角色:#MAIN 标识),此列表枚举与主表的关键字段相对应的所有公开的 CDS 视图元素名称

In case of an outer table, (identified by role: #LEFT_OUTER_TO_ONE_JOIN), this list enumerates all exposed CDS view element names that correspond to key fields in this underlying outer table; in other words that correspond to the foreign key fields used in the on-conditions of the joins.

对于外部表(由角色:#LEFT_OUTER_TO_ONE_JOIN 标识),此列表枚举与此基础外部表中的关键字段相对应的所有公开的 CDS 视图元素名称;换言之,对应于连接条件中使用的外键字段。

4. @analytics.dataExtraction.delta.changeDataCapture.mapping.tableElement

This list enumerates the respective key fields of the underlying tables to be logged.

此列表枚举要记录的基础表的相应关键字段。

  • 7
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值