OmniSciDB  04ee39c94c
Importer_NS::CopyParams Struct Reference

#include <Importer.h>

+ Collaboration diagram for Importer_NS::CopyParams:

Public Member Functions

 CopyParams ()
 
 CopyParams (char d, const std::string &n, char l, size_t b, size_t retries, size_t wait)
 

Public Attributes

char delimiter
 
std::string null_str
 
ImportHeaderRow has_header
 
bool quoted
 
char quote
 
char escape
 
char line_delim
 
char array_delim
 
char array_begin
 
char array_end
 
int threads
 
size_t max_reject
 
FileType file_type
 
bool plain_text = false
 
std::string s3_access_key
 
std::string s3_secret_key
 
std::string s3_region
 
std::string s3_endpoint
 
size_t retry_count
 
size_t retry_wait
 
size_t batch_size
 
size_t buffer_size
 
bool lonlat
 
EncodingType geo_coords_encoding
 
int32_t geo_coords_comp_param
 
SQLTypes geo_coords_type
 
int32_t geo_coords_srid
 
bool sanitize_column_names
 
std::string geo_layer_name
 

Detailed Description

Definition at line 98 of file Importer.h.

Constructor & Destructor Documentation

◆ CopyParams() [1/2]

Importer_NS::CopyParams::CopyParams ( )
inline

Definition at line 133 of file Importer.h.

References Importer_NS::AUTODETECT, and Importer_NS::DELIMITED.

134  : delimiter(',')
135  , null_str("\\N")
137  , quoted(true)
138  , quote('"')
139  , escape('"')
140  , line_delim('\n')
141  , array_delim(',')
142  , array_begin('{')
143  , array_end('}')
144  , threads(0)
145  , max_reject(100000)
147  , retry_count(100)
148  , retry_wait(5)
149  , batch_size(1000)
151  , lonlat(true)
155  , geo_coords_srid(4326)
156  , sanitize_column_names(true) {}
std::string null_str
Definition: Importer.h:100
static constexpr size_t kImportFileBufferSize
Definition: Importer.h:64
SQLTypes geo_coords_type
Definition: Importer.h:128
EncodingType geo_coords_encoding
Definition: Importer.h:126
ImportHeaderRow has_header
Definition: Importer.h:101
int32_t geo_coords_comp_param
Definition: Importer.h:127

◆ CopyParams() [2/2]

Importer_NS::CopyParams::CopyParams ( char  d,
const std::string &  n,
char  l,
size_t  b,
size_t  retries,
size_t  wait 
)
inline

Definition at line 158 of file Importer.h.

References Importer_NS::AUTODETECT, and Importer_NS::DELIMITED.

159  : delimiter(d)
160  , null_str(n)
162  , quoted(true)
163  , quote('"')
164  , escape('"')
165  , line_delim(l)
166  , array_delim(',')
167  , array_begin('{')
168  , array_end('}')
169  , threads(0)
170  , max_reject(100000)
172  , retry_count(retries)
173  , retry_wait(wait)
174  , batch_size(b)
176  , lonlat(true)
180  , geo_coords_srid(4326)
181  , sanitize_column_names(true) {}
void d(const SQLTypes expected_type, const std::string &str)
Definition: ImportTest.cpp:268
std::string null_str
Definition: Importer.h:100
static constexpr size_t kImportFileBufferSize
Definition: Importer.h:64
SQLTypes geo_coords_type
Definition: Importer.h:128
EncodingType geo_coords_encoding
Definition: Importer.h:126
ImportHeaderRow has_header
Definition: Importer.h:101
int32_t geo_coords_comp_param
Definition: Importer.h:127

Member Data Documentation

◆ array_begin

◆ array_delim

◆ array_end

◆ batch_size

size_t Importer_NS::CopyParams::batch_size

Definition at line 122 of file Importer.h.

Referenced by kafka_insert(), and stream_insert().

◆ buffer_size

size_t Importer_NS::CopyParams::buffer_size

◆ delimiter

◆ escape

◆ file_type

◆ geo_coords_comp_param

◆ geo_coords_encoding

◆ geo_coords_srid

◆ geo_coords_type

◆ geo_layer_name

◆ has_header

◆ line_delim

◆ lonlat

bool Importer_NS::CopyParams::lonlat

◆ max_reject

◆ null_str

◆ plain_text

bool Importer_NS::CopyParams::plain_text = false

◆ quote

◆ quoted

◆ retry_count

size_t Importer_NS::CopyParams::retry_count

◆ retry_wait

size_t Importer_NS::CopyParams::retry_wait

Definition at line 121 of file Importer.h.

Referenced by RowToColumnLoader::wait_disconnet_reconnnect_retry().

◆ s3_access_key

◆ s3_endpoint

◆ s3_region

◆ s3_secret_key

◆ sanitize_column_names

bool Importer_NS::CopyParams::sanitize_column_names

◆ threads


The documentation for this struct was generated from the following file: