GPUdb C++ API
Version 7.2.2.4
|
A set of parameters for GPUdb::exportRecordsToFiles. More...
#include <gpudb/protocol/export_records_to_files.h>
Public Member Functions | |
ExportRecordsToFilesRequest () | |
Constructs an ExportRecordsToFilesRequest object with default parameters. More... | |
ExportRecordsToFilesRequest (const std::string &tableName_, const std::string &filepath_, const std::map< std::string, std::string > &options_) | |
Constructs an ExportRecordsToFilesRequest object with the specified parameters. More... | |
Public Attributes | |
std::string | tableName |
std::string | filepath |
Path to data export target. More... | |
std::map< std::string, std::string > | options |
Optional parameters. More... | |
A set of parameters for GPUdb::exportRecordsToFiles.
Export records from a table to files. All tables can be exported, in full or partial (see columns_to_export and columns_to_skip). Additional filtering can be applied when using export table with expression through SQL. Default destination is KIFS, though other storage types (Azure, S3, GCS, and HDFS) are supported through datasink_name; see GPUdb::createDatasink.
Server's local file system is not supported. Default file format is delimited text. See options for different file types and different options for each file type. Table is saved to a single file if within max file size limits (may vary depending on datasink type). If not, then table is split into multiple files; these may be smaller than the max size limit.
All filenames created are returned in the response.
Definition at line 36 of file export_records_to_files.h.
|
inline |
Constructs an ExportRecordsToFilesRequest object with default parameters.
Definition at line 42 of file export_records_to_files.h.
|
inline |
Constructs an ExportRecordsToFilesRequest object with the specified parameters.
[in] | tableName_ | |
[in] | filepath_ | Path to data export target. If filepath_ has a file extension, it is read as the name of a file. If filepath_ is a directory, then the source table name with a random UUID appended will be used as the name of each exported file, all written to that directory. If filepath is a filename, then all exported files will have a random UUID appended to the given name. In either case, the target directory specified or implied must exist. The names of all exported files are returned in the response. |
[in] | options_ | Optional parameters.
|
Definition at line 330 of file export_records_to_files.h.
std::string gpudb::ExportRecordsToFilesRequest::filepath |
Path to data export target.
If filepath has a file extension, it is read as the name of a file. If filepath is a directory, then the source table name with a random UUID appended will be used as the name of each exported file, all written to that directory. If filepath is a filename, then all exported files will have a random UUID appended to the given name. In either case, the target directory specified or implied must exist. The names of all exported files are returned in the response.
Definition at line 349 of file export_records_to_files.h.
std::map<std::string, std::string> gpudb::ExportRecordsToFilesRequest::options |
Optional parameters.
The default value is an empty map.
Definition at line 537 of file export_records_to_files.h.
std::string gpudb::ExportRecordsToFilesRequest::tableName |
Definition at line 337 of file export_records_to_files.h.