Yang, Tong 3f5759eed2 MRS comp-lts 2.0.38.SP20 version
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: Yang, Tong <yangtong2@huawei.com>
Co-committed-by: Yang, Tong <yangtong2@huawei.com>
2023-01-19 17:08:45 +00:00

6.9 KiB

Modulo Integer

Overview

The Modulo Integer operator performs modulo operations on integer fields to generate new fields.

Input and Output

  • Input: integer fields
  • Output: new fields

Parameter Description

Table 1 Operator parameter description

Parameter

Description

Type

Mandatory

Default Value

Modulo fields

Modulo operation information:

  • input field name: Names of input fields. Set this parameter to the names of fields generated in the previous conversion step.
  • output field name: Names of output fields.
  • modulus: Values used for a modulo operation.

map

Yes

None

Data Processing Rule

  • The operator generates new fields and the values are those after the modulo operation.
  • The field values must be integers; otherwise, the current line becomes dirty data.

Example

Use the CSV File Input operator to generate fields A and B.

The following figure shows the source file.

Configure the Modulo Integer operator to generate two new fields C and D.

After the modulo operation, fields A, B, C, and D are generated, as shown in the following figure.