Kettle control addachecksum

Source: Internet
Author: User
Thisstepcalculateschecksumsforoneormorefieldsintheinputstreamandaddsthistotheoutputasanewfield. Calculate the verification code for the columns input by the data stream and use the output as a new column. Wiki: wiki. pentaho. comdisplayEAIAdd + a + checksumOption

This step calculates checksums for one or more fields in the input stream and adds this to the output as a new field. calculate the verification code for the column entered by the data stream and use the output as a new column. Introduction In wiki: http://wiki.pentaho.com/display/EAI/Add+a+checksum Option

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

Calculate the verification code for the column entered by the data stream and use the output as a new column.

Introduction In wiki: http://wiki.pentaho.com/display/EAI/Add+a+checksum

Option

Description

Step name

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

Type

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

Result field

The name of the result field containing the checksum

Fields used in 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.

Note: After double-clicking the control, you can see various settings. The result field must be the name of the new column.

At this time, the compatibility mode option is displayed. After the check, the field will become compact and may not be long. The default value is not selected. It is a 32-bit long field!

I use a fixed length to compare fields.

If you want to know the difference, perform the test:


Then the preview rows shows the differences between the two results.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.