pub struct ExportRecordsToFilesRequestOptions
pub batch_size: String,
pub column_formats: String,
pub columns_to_export: String,
pub columns_to_skip: String,
pub datasink_name: String,
pub default_column_formats: String,
pub export_ddl: String,
pub file_extension: String,
pub file_type: String,
pub kinetica_header: String,
pub kinetica_header_delimiter: String,
pub compression_type: String,
pub single_file: String,
pub single_file_max_size: String,
pub text_delimiter: String,
pub text_has_header: String,
pub text_null_string: String,
Optional parameters for the /export/records/tofiles endpoint.
Default::default() is the empty set: only options set explicitly are sent, and anything left empty falls back to the server’s own default.
Fields
batch_size: StringNumber of records to be exported as a batch. Server default: 1000000.
column_formats: StringFor each source column specified, applies the column-property-bound format. Currently supported column properties include date, time, and datetime. The parameter value must be formatted as a JSON string of maps of column names to maps of column properties to their corresponding column formats, e.g., ‘ “order_date” : “date” : “%Y.%m.%d” , “order_time” : “time” : “%H:%M:%S” ’.
See default_column_formats for valid format syntax.
columns_to_export: StringSpecifies a comma-delimited list of columns from the source table to export, written to the output file in the order they are given.
Column names can be provided, in which case the target file will use those names as the column headers as well.
Alternatively, column numbers can be specified–discretely or as a range. For example, a value of ‘5,7,1..3’ will write values from the fifth column in the source table into the first column in the target file, from the seventh column in the source table into the second column in the target file, and from the first through third columns in the source table into the third through fifth columns in the target file.
Mutually exclusive with columns_to_skip.
columns_to_skip: StringComma-separated list of column names or column numbers to not export. All columns in the source table not specified will be written to the target file in the order they appear in the table definition. Mutually exclusive with columns_to_export.
datasink_name: StringDatasink name, created using /create/datasink.
default_column_formats: StringSpecifies the default format to use to write data. Currently supported column properties include date, time, and datetime. This default column-property-bound format can be overridden by specifying a column property and format for a given source column in column_formats. For each specified annotation, the format will apply to all columns with that annotation unless custom column_formats for that annotation are specified.
The parameter value must be formatted as a JSON string that is a map of column properties to their respective column formats, e.g., ‘ “date” : “%Y.%m.%d”, “time” : “%H:%M:%S” ’. Column formats are specified as a string of control characters and plain text. The supported control characters are ‘Y’, ‘m’, ‘d’, ‘H’, ‘M’, ‘S’, and ‘s’, which follow the Linux ‘strptime()’ specification, as well as ‘s’, which specifies seconds and fractional seconds (though the fractional component will be truncated past milliseconds).
Formats for the ‘date’ annotation must include the ‘Y’, ‘m’, and ‘d’ control characters. Formats for the ‘time’ annotation must include the ‘H’, ‘M’, and either ‘S’ or ‘s’ (but not both) control characters. Formats for the ‘datetime’ annotation meet both the ‘date’ and ‘time’ control character requirements. For example, ‘“datetime” : “%m/%d/%Y %H:%M:%S” ’ would be used to write text as “05/04/2000 12:12:11”
export_ddl: StringSave DDL to a separate file. Server default: false.
file_extension: StringExtension to give the export file. Server default: .csv.
file_type: StringSpecifies the file format to use when exporting data. Server default: delimited_text.
kinetica_header: StringWhether to include a Kinetica proprietary header. Will not be written if text_has_header is false. Server default: false.
kinetica_header_delimiter: StringIf a Kinetica proprietary header is included, then specify a property separator. Different from column delimiter. Server default: |.
compression_type: StringFile compression type. GZip can be applied to text and Parquet files. Snappy can only be applied to Parquet files, and is the default compression for them.
single_file: StringSave records to a single file. This option may be ignored if file size exceeds internal file size limits (this limit will differ on different targets). Server default: true.
single_file_max_size: StringMax file size (in MB) to allow saving to a single file. May be overridden by target limitations.
text_delimiter: StringSpecifies the character to write out to delimit field values and field names in the header (if present).
For delimited_text file_type only. Server default: ,.
text_has_header: StringIndicates whether to write out a header row.
For delimited_text file_type only. Server default: true.
text_null_string: StringSpecifies the character string that should be written out for the null value in the data.
For delimited_text file_type only. Server default: \N.
Implementations
Trait Implementations
fn clone(&self) -> ExportRecordsToFilesRequestOptions
fn clone_from(&mut self, source: &Self)
source. Read more