Kùzu C++ API
Loading...
Searching...
No Matches
kuzu::common::CopyConstants Struct Reference

#include <constants.h>

Static Public Attributes

static constexpr uint64_t INITIAL_BUFFER_SIZE = 16384
 
static constexpr uint64_t PARALLEL_BLOCK_SIZE = INITIAL_BUFFER_SIZE / 2
 
static constexpr const char * IGNORE_ERRORS_OPTION_NAME = "IGNORE_ERRORS"
 
static constexpr const char * BOOL_CSV_PARSING_OPTIONS []
 
static constexpr bool DEFAULT_CSV_HAS_HEADER = false
 
static constexpr bool DEFAULT_CSV_PARALLEL = true
 
static constexpr const char * STRING_CSV_PARSING_OPTIONS []
 
static constexpr char DEFAULT_CSV_ESCAPE_CHAR = '"'
 
static constexpr char DEFAULT_CSV_DELIMITER = ','
 
static constexpr bool DEFAULT_CSV_ALLOW_UNBRACED_LIST = false
 
static constexpr char DEFAULT_CSV_QUOTE_CHAR = '"'
 
static constexpr char DEFAULT_CSV_LIST_BEGIN_CHAR = '['
 
static constexpr char DEFAULT_CSV_LIST_END_CHAR = ']'
 
static constexpr bool DEFAULT_IGNORE_ERRORS = false
 
static constexpr bool DEFAULT_CSV_AUTO_DETECT = true
 
static constexpr bool DEFAULT_CSV_SET_DIALECT = false
 
static constexpr std::array DEFAULT_CSV_DELIMITER_SEARCH_SPACE = {',', ';', '\t', '|'}
 
static constexpr std::array DEFAULT_CSV_QUOTE_SEARCH_SPACE = {'"', '\''}
 
static constexpr std::array DEFAULT_CSV_ESCAPE_SEARCH_SPACE = {'"', '\\', '\''}
 
static constexpr uint64_t PANDAS_PARTITION_COUNT = 50 * DEFAULT_VECTOR_CAPACITY
 
static constexpr const char * INT_CSV_PARSING_OPTIONS [] = {"SKIP", "SAMPLE_SIZE"}
 
static constexpr uint64_t DEFAULT_CSV_SKIP_NUM = 0
 
static constexpr uint64_t DEFAULT_CSV_TYPE_DEDUCTION_SAMPLE_SIZE = 256
 
static constexpr std::array SHARED_WARNING_DATA_COLUMN_NAMES
 
static constexpr std::array SHARED_WARNING_DATA_COLUMN_TYPES
 
static constexpr column_id_t SHARED_WARNING_DATA_NUM_COLUMNS
 
static constexpr std::array CSV_SPECIFIC_WARNING_DATA_COLUMN_NAMES = {"fileIdx"}
 
static constexpr std::array CSV_SPECIFIC_WARNING_DATA_COLUMN_TYPES = {LogicalTypeID::UINT32}
 
static constexpr std::array CSV_WARNING_DATA_COLUMN_NAMES
 
static constexpr std::array CSV_WARNING_DATA_COLUMN_TYPES
 
static constexpr column_id_t CSV_WARNING_DATA_NUM_COLUMNS
 
static constexpr column_id_t MAX_NUM_WARNING_DATA_COLUMNS = CSV_WARNING_DATA_NUM_COLUMNS
 

Member Data Documentation

◆ BOOL_CSV_PARSING_OPTIONS

const char* kuzu::common::CopyConstants::BOOL_CSV_PARSING_OPTIONS[]
staticconstexpr
Initial value:
= {"HEADER", "PARALLEL",
"LIST_UNBRACED", "AUTODETECT", "AUTO_DETECT", CopyConstants::IGNORE_ERRORS_OPTION_NAME}
static constexpr const char * IGNORE_ERRORS_OPTION_NAME
Definition constants.h:136

◆ CSV_SPECIFIC_WARNING_DATA_COLUMN_NAMES

std::array kuzu::common::CopyConstants::CSV_SPECIFIC_WARNING_DATA_COLUMN_NAMES = {"fileIdx"}
staticconstexpr

◆ CSV_SPECIFIC_WARNING_DATA_COLUMN_TYPES

std::array kuzu::common::CopyConstants::CSV_SPECIFIC_WARNING_DATA_COLUMN_TYPES = {LogicalTypeID::UINT32}
staticconstexpr

◆ CSV_WARNING_DATA_COLUMN_NAMES

std::array kuzu::common::CopyConstants::CSV_WARNING_DATA_COLUMN_NAMES
staticconstexpr
Initial value:
=
constexpr std::array< T, N1+N2 > arrayConcat(const std::array< T, N1 > &arr1, const std::array< T, N2 > &arr2)
Definition array_utils.h:9
static constexpr std::array CSV_SPECIFIC_WARNING_DATA_COLUMN_NAMES
Definition constants.h:171
static constexpr std::array SHARED_WARNING_DATA_COLUMN_NAMES
Definition constants.h:164

◆ CSV_WARNING_DATA_COLUMN_TYPES

std::array kuzu::common::CopyConstants::CSV_WARNING_DATA_COLUMN_TYPES
staticconstexpr
Initial value:
=
static constexpr std::array CSV_SPECIFIC_WARNING_DATA_COLUMN_TYPES
Definition constants.h:172
static constexpr std::array SHARED_WARNING_DATA_COLUMN_TYPES
Definition constants.h:166

◆ CSV_WARNING_DATA_NUM_COLUMNS

column_id_t kuzu::common::CopyConstants::CSV_WARNING_DATA_NUM_COLUMNS
staticconstexpr
Initial value:
=
static constexpr std::array CSV_WARNING_DATA_COLUMN_NAMES
Definition constants.h:174

◆ DEFAULT_CSV_ALLOW_UNBRACED_LIST

bool kuzu::common::CopyConstants::DEFAULT_CSV_ALLOW_UNBRACED_LIST = false
staticconstexpr

◆ DEFAULT_CSV_AUTO_DETECT

bool kuzu::common::CopyConstants::DEFAULT_CSV_AUTO_DETECT = true
staticconstexpr

◆ DEFAULT_CSV_DELIMITER

char kuzu::common::CopyConstants::DEFAULT_CSV_DELIMITER = ','
staticconstexpr

◆ DEFAULT_CSV_DELIMITER_SEARCH_SPACE

std::array kuzu::common::CopyConstants::DEFAULT_CSV_DELIMITER_SEARCH_SPACE = {',', ';', '\t', '|'}
staticconstexpr

◆ DEFAULT_CSV_ESCAPE_CHAR

char kuzu::common::CopyConstants::DEFAULT_CSV_ESCAPE_CHAR = '"'
staticconstexpr

◆ DEFAULT_CSV_ESCAPE_SEARCH_SPACE

std::array kuzu::common::CopyConstants::DEFAULT_CSV_ESCAPE_SEARCH_SPACE = {'"', '\\', '\''}
staticconstexpr

◆ DEFAULT_CSV_HAS_HEADER

bool kuzu::common::CopyConstants::DEFAULT_CSV_HAS_HEADER = false
staticconstexpr

◆ DEFAULT_CSV_LIST_BEGIN_CHAR

char kuzu::common::CopyConstants::DEFAULT_CSV_LIST_BEGIN_CHAR = '['
staticconstexpr

◆ DEFAULT_CSV_LIST_END_CHAR

char kuzu::common::CopyConstants::DEFAULT_CSV_LIST_END_CHAR = ']'
staticconstexpr

◆ DEFAULT_CSV_PARALLEL

bool kuzu::common::CopyConstants::DEFAULT_CSV_PARALLEL = true
staticconstexpr

◆ DEFAULT_CSV_QUOTE_CHAR

char kuzu::common::CopyConstants::DEFAULT_CSV_QUOTE_CHAR = '"'
staticconstexpr

◆ DEFAULT_CSV_QUOTE_SEARCH_SPACE

std::array kuzu::common::CopyConstants::DEFAULT_CSV_QUOTE_SEARCH_SPACE = {'"', '\''}
staticconstexpr

◆ DEFAULT_CSV_SET_DIALECT

bool kuzu::common::CopyConstants::DEFAULT_CSV_SET_DIALECT = false
staticconstexpr

◆ DEFAULT_CSV_SKIP_NUM

uint64_t kuzu::common::CopyConstants::DEFAULT_CSV_SKIP_NUM = 0
staticconstexpr

◆ DEFAULT_CSV_TYPE_DEDUCTION_SAMPLE_SIZE

uint64_t kuzu::common::CopyConstants::DEFAULT_CSV_TYPE_DEDUCTION_SAMPLE_SIZE = 256
staticconstexpr

◆ DEFAULT_IGNORE_ERRORS

bool kuzu::common::CopyConstants::DEFAULT_IGNORE_ERRORS = false
staticconstexpr

◆ IGNORE_ERRORS_OPTION_NAME

const char* kuzu::common::CopyConstants::IGNORE_ERRORS_OPTION_NAME = "IGNORE_ERRORS"
staticconstexpr

◆ INITIAL_BUFFER_SIZE

uint64_t kuzu::common::CopyConstants::INITIAL_BUFFER_SIZE = 16384
staticconstexpr

◆ INT_CSV_PARSING_OPTIONS

const char* kuzu::common::CopyConstants::INT_CSV_PARSING_OPTIONS[] = {"SKIP", "SAMPLE_SIZE"}
staticconstexpr

◆ MAX_NUM_WARNING_DATA_COLUMNS

column_id_t kuzu::common::CopyConstants::MAX_NUM_WARNING_DATA_COLUMNS = CSV_WARNING_DATA_NUM_COLUMNS
staticconstexpr

◆ PANDAS_PARTITION_COUNT

uint64_t kuzu::common::CopyConstants::PANDAS_PARTITION_COUNT = 50 * DEFAULT_VECTOR_CAPACITY
staticconstexpr

◆ PARALLEL_BLOCK_SIZE

uint64_t kuzu::common::CopyConstants::PARALLEL_BLOCK_SIZE = INITIAL_BUFFER_SIZE / 2
staticconstexpr

◆ SHARED_WARNING_DATA_COLUMN_NAMES

std::array kuzu::common::CopyConstants::SHARED_WARNING_DATA_COLUMN_NAMES
staticconstexpr
Initial value:
= {"blockIdx", "offsetInBlock",
"startByteOffset", "endByteOffset"}

◆ SHARED_WARNING_DATA_COLUMN_TYPES

std::array kuzu::common::CopyConstants::SHARED_WARNING_DATA_COLUMN_TYPES
staticconstexpr

◆ SHARED_WARNING_DATA_NUM_COLUMNS

column_id_t kuzu::common::CopyConstants::SHARED_WARNING_DATA_NUM_COLUMNS
staticconstexpr
Initial value:

◆ STRING_CSV_PARSING_OPTIONS

const char* kuzu::common::CopyConstants::STRING_CSV_PARSING_OPTIONS[]
staticconstexpr
Initial value:
= {"ESCAPE", "DELIM", "DELIMITER",
"QUOTE"}

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