加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

kettle控件 add a checksum

发布时间:2020-12-14 03:53:01 所属栏目:大数据 来源:网络整理
导读:This step calculates checksums for one or more fields in the input stream and adds this to the output as a new field. 为数据流输入的列计算校验码,并将输出作为新的一列。 ? wiki中介绍:http://wiki.pentaho.com/display/EAI/Add+a+checksum ? Opt

This step calculates checksums for one or more fields in the input stream and adds this to the output as a new field.

为数据流输入的列计算校验码,并将输出作为新的一列。

?

wiki中介绍:http://wiki.pentaho.com/display/EAI/Add+a+checksum

?

Type

Result field

Fields used in the checksum

Option

Description

Step name

Name of the step.?Note: This name has to be unique in a single transformation.

The type of checksum that needs to be calculated.? These are the types that are available:

  • CRC32 : 32-bit Cyclic Redundancy Check :?http://en.wikipedia.org/wiki/Cyclic_redundancy_check
  • ADLER 32 : Checksum algorithm by Mark Adler:?http://en.wikipedia.org/wiki/Adler-32
  • MD5 : Message Digest algorithm 5 :?http://en.wikipedia.org/wiki/MD5
  • SHA-1 : Secure Hash Algorithm 1 :?http://en.wikipedia.org/wiki/SHA-1

The name of the result field containing the checksum

The names of the fields to include in the checksum calculation.
Note: You can use the "Get Fields" button to insert all input fields from previous steps.

?

注意,双击控件后,可以看到各种设置项。result field为新列的名称,一定要写。

这时候看到compatibility?mode选项,打钩后,字段就会变得紧凑,不定长。默认为不选,是32位长的字段!

我为了比较字段,所以用定长。

如果想知道区别,做测试:

?

然后就preview rows,就可以看出两种结果的不同

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读