Kinetica   C#   API  Version 7.2.3.0
ExportRecordsToFiles.cs
Go to the documentation of this file.
1 /*
2  * This file was autogenerated by the Kinetica schema processor.
3  *
4  * DO NOT EDIT DIRECTLY.
5  */
6 
7 using System.Collections.Generic;
8 
9 namespace kinetica
10 {
32  {
36  public struct Options
37  {
40  public const string BATCH_SIZE = "batch_size";
41 
53  public const string COLUMN_FORMATS = "column_formats";
54 
72  public const string COLUMNS_TO_EXPORT = "columns_to_export";
73 
81  public const string COLUMNS_TO_SKIP = "columns_to_skip";
82 
86  public const string DATASINK_NAME = "datasink_name";
87 
116  public const string DEFAULT_COLUMN_FORMATS = "default_column_formats";
117 
120  public const string EXPORT_DDL = "export_ddl";
121 
124  public const string FILE_EXTENSION = "file_extension";
125 
144  public const string FILE_TYPE = "file_type";
145 
148  public const string DELIMITED_TEXT = "delimited_text";
149 
150  public const string PARQUET = "parquet";
151 
165  public const string KINETICA_HEADER = "kinetica_header";
166 
167  public const string TRUE = "true";
168  public const string FALSE = "false";
169 
174  public const string KINETICA_HEADER_DELIMITER = "kinetica_header_delimiter";
175 
190  public const string COMPRESSION_TYPE = "compression_type";
191 
192  public const string UNCOMPRESSED = "uncompressed";
193  public const string SNAPPY = "snappy";
194  public const string GZIP = "gzip";
195 
212  public const string SINGLE_FILE = "single_file";
213 
214  public const string OVERWRITE = "overwrite";
215 
220  public const string SINGLE_FILE_MAX_SIZE = "single_file_max_size";
221 
228  public const string TEXT_DELIMITER = "text_delimiter";
229 
242  public const string TEXT_HAS_HEADER = "text_has_header";
243 
250  public const string TEXT_NULL_STRING = "text_null_string";
251  } // end struct Options
252 
253  public string table_name { get; set; }
254 
264  public string filepath { get; set; }
265 
516  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
517 
521 
786  string filepath,
787  IDictionary<string, string> options = null)
788  {
789  this.table_name = table_name ?? "";
790  this.filepath = filepath ?? "";
791  this.options = options ?? new Dictionary<string, string>();
792  } // end constructor
793  } // end class ExportRecordsToFilesRequest
794 
799  {
801  public string table_name { get; set; }
802 
804  public long count_exported { get; set; }
805 
807  public long count_skipped { get; set; }
808 
810  public IList<string> files { get; set; } = new List<string>();
811 
813  public long last_timestamp { get; set; }
814 
815  public IList<string> data_text { get; set; } = new List<string>();
816 
817  public IList<byte[]> data_bytes { get; set; } = new List<byte[]>();
818 
820  public IDictionary<string, string> info { get; set; } = new Dictionary<string, string>();
821  } // end class ExportRecordsToFilesResponse
822 } // end namespace kinetica
IDictionary< string, string > info
Additional information
const string COLUMN_FORMATS
For each source column specified, applies the column-property-bound format.
string filepath
Path to data export target.
const string DEFAULT_COLUMN_FORMATS
Specifies the default format to use to write data.
const string EXPORT_DDL
Save DDL to a separate file.
const string TEXT_DELIMITER
Specifies the character to write out to delimit field values and field names in the header (if presen...
const string COLUMNS_TO_SKIP
Comma-separated list of column names or column numbers to not export.
ExportRecordsToFilesRequest(string table_name, string filepath, IDictionary< string, string > options=null)
Constructs an ExportRecordsToFilesRequest object with the specified parameters.
A set of string constants for the parameter options.
A set of results returned by Kinetica.exportRecordsToFiles.
const string SINGLE_FILE
Save records to a single file.
ExportRecordsToFilesRequest()
Constructs an ExportRecordsToFilesRequest object with default parameters.
long count_exported
Number of source table records exported
const string COLUMNS_TO_EXPORT
Specifies a comma-delimited list of columns from the source table to export, written to the output fi...
const string BATCH_SIZE
Number of records to be exported as a batch.
A set of parameters for Kinetica.exportRecordsToFiles.
const string COMPRESSION_TYPE
File compression type.
const string SINGLE_FILE_MAX_SIZE
Max file size (in MB) to allow saving to a single file.
long last_timestamp
Timestamp of last file scanned
IDictionary< string, string > options
Optional parameters.
const string TEXT_HAS_HEADER
Indicates whether to write out a header row.
const string FILE_EXTENSION
Extension to give the export file.
long count_skipped
Number of source table records skipped
const string KINETICA_HEADER
Whether to include a Kinetica proprietary header.
const string TEXT_NULL_STRING
Specifies the character string that should be written out for the null value in the data.
const string FILE_TYPE
Specifies the file format to use when exporting data.
const string KINETICA_HEADER_DELIMITER
If a Kinetica proprietary header is included, then specify a property separator.
const string DELIMITED_TEXT
Delimited text file format; e.g., CSV, TSV, PSV, etc.
const string DATASINK_NAME
Datasink name, created using Kinetica.createDatasink.
KineticaData - class to help with Avro Encoding for Kinetica
Definition: KineticaData.cs:14
IList< string > files
Names of all exported files