Read CSV File
Operation name
Read CSV File
Function overview
Reads files of formats such as CSV (Comma Separated Values), TSV (Tab Separated Values), etc.
Data model
The data model of this component is table model type.
Properties
For details on use of variables, refer to Variables.
Basic settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Name |
Required |
Not available |
Enter a name that is used on the script canvas. |
|
Required settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
File |
Required |
Available |
Enter the file path of CSV or TSV format. The Browse button launches a file chooser that allows you to select a file. |
Note
|
Delimiter mode |
Required |
Not available |
Select a method to specify delimiter.
|
|
Select from list/Delimiter |
Optional |
Not available |
Select a delimiter character.
|
|
Enter directly/Delimiter |
Optional |
Available |
Enter one character for delimiter. |
|
Enter character code/Delimiter |
Optional |
Available |
Enter the character code. The character code is converted with the encoding specified in Encoding. You can enter the code as octal (with prefix "0" <number zero>), decimal (without prefix), and hexadecimal (with prefix "0x" <alphabet x with number zero> or "#"). If the delimiter character is a multi-byte string, enter it separated with a comma. Example: 0x10,0x13 |
|
Column list |
Optional |
- |
Specify the columns. Each column can be operated with the following buttons:
|
|
Column list/Column name |
Required |
Available |
Enter the column name. The first row of the file specified in File can be set as a column name using Update column list property action. |
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Preview |
The previewer is started, and the contents of the file specified in File is displayed. |
|
Update column list |
The row specified in Starting row of the file specified in File is set as a column name. |
|
Read column names from first row of file |
Select a file in file chooser, and the first row of that file is set as a column name. |
|
Read the number of columns from file |
Select a file in file chooser, and the number of columns of that file is set as the number of column names. |
|
Read settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Encoding |
Required |
Available |
Select or enter an encoding for the file to read. When you enter encoding, specify one of the encodings supported in Java SE Runtime Environment 8. |
|
Starting row |
Optional |
Available |
Enter the starting row to read. |
|
Do not get first row as value |
Optional |
Not available |
Select whether or not to handle the starting row of the specified file as data.
|
|
Multi-thread processing settings
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Enable multi-thread processing settings |
Optional |
Not available |
Specify whether or not to perform multi-thread processing when the component to receive the result data supports it.
|
|
Data processing method
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Data processing method |
Required |
Not available |
Select a data processing method.
|
|
Comment
Item name |
Required/Optional |
Use of variables |
Description |
Remarks |
---|---|---|---|---|
Comment |
Optional |
Not available |
You can write a short description of this connector. |
|
Schemas
Input schema
None.
Output schema
The number of columns varies depending on the Column list settings.
For schema structure, refer to Table model type .
Loading schema in Mapper
The schema is loaded automatically.
For details, refer to Edit Schema.
Mass data processing
Mass data processing is supported.
Parallel Stream Processing
PSP is supported.
For details on PSP, refer to Parallel Stream Processing.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of read data records is stored. |
Note
Value isn't stored when using PSP. |
filePath |
The path of the read file is stored. |
Note
Value isn't stored when using PSP. |
message_category |
When an error occurs, the category of the message code corresponding to the error is stored. |
|
message_code |
When an error occurs, the code of the message code corresponding to the error is stored. |
|
message_level |
When an error occurs, the severity of the message code corresponding to the error is stored. |
|
error_type |
When an error occurs, the error type is stored. |
|
error_message |
When an error occurs, the error message is stored. |
|
error_trace |
When an error occurs, the trace information for the error is stored. |
|
Null and empty strings
-
When the target data is an empty string, the read data will be null.
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|