7 using System.Collections.Generic;
19 public class CreateExternalTableRequest : KineticaData
33 public struct CreateTableOptions
37 public const string TYPE_ID =
"type_id";
255 public struct Options
276 public const string TABLE_TYPE =
"table_type";
277 public const string MATERIALIZED =
"materialized";
278 public const string LOGICAL =
"logical";
279 public const string LOGICAL_TMP =
"logical_tmp";
295 public const string FILE_TYPE =
"file_type";
296 public const string DELIMITED_TEXT =
"delimited_text";
297 public const string PARQUET =
"parquet";
317 public const string LOADING_MODE =
"loading_mode";
318 public const string HEAD =
"head";
319 public const string DISTRIBUTED_SHARED =
"distributed_shared";
320 public const string DISTRIBUTED_LOCAL =
"distributed_local";
340 public const string ERROR_HANDLING =
"error_handling";
341 public const string PERMISSIVE =
"permissive";
342 public const string IGNORE_BAD_RECORDS =
"ignore_bad_records";
343 public const string ABORT =
"abort";
344 public const string BATCH_SIZE =
"batch_size";
360 public const string REFRESH_METHOD =
"refresh_method";
361 public const string MANUAL =
"manual";
362 public const string ON_START =
"on_start";
363 public const string COLUMN_FORMATS =
"column_formats";
364 public const string DEFAULT_COLUMN_FORMATS =
"default_column_formats";
380 public const string DRY_RUN =
"dry_run";
381 public const string FALSE =
"false";
382 public const string TRUE =
"true";
398 public const string TEXT_HAS_HEADER =
"text_has_header";
401 public const string TEXT_DELIMITER =
"text_delimiter";
404 public const string TEXT_HEADER_PROPERTY_DELIMITER =
"text_header_property_delimiter";
405 public const string COLUMNS_TO_LOAD =
"columns_to_load";
408 public const string TEXT_COMMENT_STRING =
"text_comment_string";
411 public const string TEXT_NULL_STRING =
"text_null_string";
414 public const string TEXT_QUOTE_CHARACTER =
"text_quote_character";
415 public const string TEXT_ESCAPE_CHARACTER =
"text_escape_character";
416 public const string EXTERNAL_STORAGE_LOCATION =
"external_storage_location";
417 public const string S3_BUCKET_NAME =
"s3_bucket_name";
418 public const string S3_REGION =
"s3_region";
419 public const string NUM_TASKS_PER_RANK =
"num_tasks_per_rank";
422 public string table_name {
get; set; }
423 public IList<string> filepaths {
get; set; } =
new List<string>();
434 public IDictionary<string, string> create_table_options {
get; set; } =
new Dictionary<string, string>();
648 public IDictionary<string, string> options {
get; set; } =
new Dictionary<string, string>();
653 public CreateExternalTableRequest() { }
882 public CreateExternalTableRequest(
string table_name,
883 IList<string> filepaths,
884 IDictionary<string, string> create_table_options = null,
885 IDictionary<string, string> options = null)
887 this.table_name = table_name ??
"";
888 this.filepaths = filepaths ??
new List<string>();
889 this.create_table_options = create_table_options ??
new Dictionary<string, string>();
890 this.options = options ??
new Dictionary<string, string>();
902 public class CreateExternalTableResponse : KineticaData
904 public string table_name {
get; set; }
905 public string type_id {
get; set; }
906 public long count_inserted {
get; set; }
907 public long count_skipped {
get; set; }
908 public long count_updated {
get; set; } = -1;
909 public IDictionary<string, string> info {
get; set; } =
new Dictionary<string, string>();