Class GPUdbFileHandler
This class exposes convenience methods to upload/download files to/from KIFS from local/KIFS directory.
Methods
upload_files - Upload a list of files -
upload_files()upload_file - Upload a single file -
upload_file()download_files - Download a list of files -
download_files()download_file - Download a single file -
download_file()
Example
Initialize a GPUdbFileHandler.
Parameters
A GPUdb instance
Create a GPUdbFileHandler instance from a host URL, user name, and password.
Parameters
A Kinetica host URL. Defaults to “http://127.0.0.1:9191”.
Kinetica user name. Defaults to None.
Password for the user. Defaults to None.
Returns
a GPUdbFileHandler instance
Create a GPUdbFileHandler from a GPUdb instance.
Parameters
a GPUdb instance
Returns
a GPUdbFileHandler instance
Upload a single file to a KIFS directory.
Parameters
Full path to the local file to upload
A KIFS directory to upload (must be existing)
Upload a list of files to a KIFS directory.
Parameters
List of full local file paths
Name of an existent KIFS directory
A large file greater than 60MB in size will be downloaded in parts.
Parameters
Name of the file to download (full KIFS path)
Name of the local directory to save the file in
Raises
In case of an exception thrown by the server or in case the local directory doesn’t exist
Download a list of files from KIFS.
Parameters
A list of file names (full KIFS paths)
Name of the local directory to save the files in
Raises
In case of an exception thrown by the server or in case the local directory doesn’t exist