Updated on 2024-10-09 GMT+08:00

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.