Kinetica C# API  Version 7.0.19.0
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Pages
CreateExternalTable.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 
10 
11 namespace kinetica
12 {
19  public class CreateExternalTableRequest : KineticaData
20  {
21 
33  public struct CreateTableOptions
34  {
35 
37  public const string TYPE_ID = "type_id";
38  } // end struct CreateTableOptions
39 
40 
255  public struct Options
256  {
257 
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";
280 
295  public const string FILE_TYPE = "file_type";
296  public const string DELIMITED_TEXT = "delimited_text";
297  public const string PARQUET = "parquet";
298 
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";
321 
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";
345 
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";
365 
380  public const string DRY_RUN = "dry_run";
381  public const string FALSE = "false";
382  public const string TRUE = "true";
383 
398  public const string TEXT_HAS_HEADER = "text_has_header";
399 
401  public const string TEXT_DELIMITER = "text_delimiter";
402 
404  public const string TEXT_HEADER_PROPERTY_DELIMITER = "text_header_property_delimiter";
405  public const string COLUMNS_TO_LOAD = "columns_to_load";
406 
408  public const string TEXT_COMMENT_STRING = "text_comment_string";
409 
411  public const string TEXT_NULL_STRING = "text_null_string";
412 
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";
420  } // end struct Options
421 
422  public string table_name { get; set; }
423  public IList<string> filepaths { get; set; } = new List<string>();
424 
434  public IDictionary<string, string> create_table_options { get; set; } = new Dictionary<string, string>();
435 
648  public IDictionary<string, string> options { get; set; } = new Dictionary<string, string>();
649 
650 
653  public CreateExternalTableRequest() { }
654 
882  public CreateExternalTableRequest( string table_name,
883  IList<string> filepaths,
884  IDictionary<string, string> create_table_options = null,
885  IDictionary<string, string> options = null)
886  {
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>();
891  } // end constructor
892 
893  } // end class CreateExternalTableRequest
895 
896 
897 
902  public class CreateExternalTableResponse : KineticaData
903  {
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>();
910 
911  } // end class CreateExternalTableResponse
913 
914 
915 
916 
917 
918 } // end namespace kinetica