Read File/Folder
Operation name
Read File/Folder
Function overview
Reads data from a file/folder on Google Cloud Storage onto HULFT Square Storage.
Data model
The data model of this component is XML 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 |
---|---|---|---|---|
Destination |
Required |
Not available |
Select a connection resource.
|
|
Bucket name of the read source |
Required |
Available |
Select or enter the bucket to be read. |
|
Folder path of the read source |
Required |
Available |
Select or enter the folder path on Google Cloud Storage. |
Note
Specify an absolute path of Google Cloud Storage for the folder path. |
File/Folder name of the read source |
Required |
Available |
Select or enter the file/folder on Google Cloud Storage. |
|
Save destination directory |
Required |
Available |
Enter a directory path of HULFT Square Storage. The Browse button launches a directory chooser that allows you to select a directory. |
Note
|
Overwrite when one exists |
Optional |
Not available |
Select whether or not to overwrite a file when a file with the same name exists in the specified save destination directory.
|
|
Property actions
Item name |
Description |
Remarks |
---|---|---|
Update the list of bucket names of the read source |
Get bucket names in the specified destination and set them in Bucket name of the read source. |
|
Update the list of folder paths of the read source |
Get folder paths in the specified bucket and set them in Folder path of the read source. |
|
Update the list of file/folder names of the read source |
Get file/folder names in the specified folder path and set them in File/Folder name of the read source. |
|
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. |
|
Input schema
None.
Output schema
<?xml version="1.0"?> <bucket name="" status="" > <file errorcode="" localpath="" name="" remotepath="" size="" status="" statuscode="" type="" updated=""/> </bucket>
Element name |
Attribute name |
Description |
Remarks |
---|---|---|---|
bucket |
- |
Appears once for each retrieved bucket. |
|
name |
Outputs the name of the retrieved bucket. |
|
|
status |
Outputs the status of the retrieved bucket.
|
|
|
file |
- |
Appears once for each read file/folder. |
|
errorcode |
When an error occurs on Google Cloud Storage, outputs the API error code defined on Google Cloud Storage. |
|
|
localpath |
Outputs the local path of the read file/folder. |
|
|
name |
Outputs the name on Google Cloud Storage of the read file/folder. |
|
|
remotepath |
Outputs the file path on Google Cloud Storage of the read file/folder. |
|
|
size |
When the read file/folder is a file, outputs the file size. The unit is byte. |
|
|
status |
Outputs the status of the read file/folder.
|
|
|
statuscode |
When an error occurs on Google Cloud Storage, outputs the API status code defined on Google Cloud Storage. |
|
|
type |
Outputs the type of read file/folder.
|
|
|
updated |
Outputs the last updated date when the read file/folder is a file. |
|
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 isn't supported.
Available component variables
Component variable name |
Description |
Remarks |
---|---|---|
count |
The number of target files/folders is stored. |
|
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. |
|
Message codes, exception messages, and limitations
Connector |
Message code |
Exception message |
Limitations |
---|---|---|---|
Messages and limitations of the Google Cloud Storage connector |