public static final class ExportRecordsToFilesRequest.Options extends Object
ExportRecordsToFilesRequest
parameter options
.
Optional parameters.
Modifier and Type | Field and Description |
---|---|
static String |
BATCH_SIZE
Number of records to be exported as a batch.
|
static String |
COLUMN_FORMATS
For each source column specified, applies the column-property-bound
format.
|
static String |
COLUMNS_TO_EXPORT
Specifies a comma-delimited list of columns from the source table to
export, written to the output file in the order they are given.
|
static String |
COLUMNS_TO_SKIP
Comma-separated list of column names or column numbers to not
export.
|
static String |
COMPRESSION_TYPE
File compression type.
|
static String |
DATASINK_NAME
Datasink name, created using
GPUdb.createDatasink . |
static String |
DEFAULT_COLUMN_FORMATS
Specifies the default format to use to write data.
|
static String |
DELIMITED_TEXT
Delimited text file format; e.g., CSV, TSV, PSV, etc.
|
static String |
EXPORT_DDL
Save DDL to a separate file.
|
static String |
FALSE |
static String |
FILE_EXTENSION
Extension to give the export file.
|
static String |
FILE_TYPE
Specifies the file format to use when exporting data.
|
static String |
GZIP |
static String |
KINETICA_HEADER
Whether to include a Kinetica proprietary header.
|
static String |
KINETICA_HEADER_DELIMITER
If a Kinetica proprietary header is included, then specify a
property separator.
|
static String |
OVERWRITE |
static String |
PARQUET |
static String |
SINGLE_FILE
Save records to a single file.
|
static String |
SINGLE_FILE_MAX_SIZE
Max file size (in MB) to allow saving to a single file.
|
static String |
SNAPPY |
static String |
TEXT_DELIMITER
Specifies the character to write out to delimit field values and
field names in the header (if present).
|
static String |
TEXT_HAS_HEADER
Indicates whether to write out a header row.
|
static String |
TEXT_NULL_STRING
Specifies the character string that should be written out for the
null value in the data.
|
static String |
TRUE |
static String |
UNCOMPRESSED |
public static final String BATCH_SIZE
public static final String COLUMN_FORMATS
See DEFAULT_COLUMN_FORMATS
for valid format syntax.
public static final String COLUMNS_TO_EXPORT
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
.
public static final String COLUMNS_TO_SKIP
COLUMNS_TO_EXPORT
.public static final String DATASINK_NAME
GPUdb.createDatasink
.public static final String DEFAULT_COLUMN_FORMATS
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"
public static final String EXPORT_DDL
public static final String FILE_EXTENSION
public static final String FILE_TYPE
DELIMITED_TEXT
: Delimited
text file format; e.g., CSV, TSV, PSV, etc.
PARQUET
DELIMITED_TEXT
.public static final String DELIMITED_TEXT
public static final String PARQUET
public static final String KINETICA_HEADER
TEXT_HAS_HEADER
is FALSE
.
Supported values:
The default value is FALSE
.public static final String TRUE
public static final String FALSE
public static final String KINETICA_HEADER_DELIMITER
public static final String COMPRESSION_TYPE
public static final String UNCOMPRESSED
public static final String SNAPPY
public static final String GZIP
public static final String SINGLE_FILE
TRUE
.public static final String OVERWRITE
public static final String SINGLE_FILE_MAX_SIZE
public static final String TEXT_DELIMITER
For DELIMITED_TEXT
FILE_TYPE
only. The default value is ','.
public static final String TEXT_HAS_HEADER
For DELIMITED_TEXT
FILE_TYPE
only.
Supported values:
TRUE
.public static final String TEXT_NULL_STRING
For DELIMITED_TEXT
FILE_TYPE
only. The default value is '\N'.
Copyright © 2025. All rights reserved.