15#define DEFAULT_VECTOR_CAPACITY_LOG_2 11
16#ifndef KUZU_VECTOR_CAPACITY_LOG2
17#define VECTOR_CAPACITY_LOG_2 DEFAULT_VECTOR_CAPACITY_LOG_2
19#define VECTOR_CAPACITY_LOG_2 KUZU_VECTOR_CAPACITY_LOG2
21#if VECTOR_CAPACITY_LOG_2 > 12
22#error "Vector capacity log2 should be less than or equal to 12"
40 static constexpr char ID[] =
"_ID";
41 static constexpr char LABEL[] =
"_LABEL";
42 static constexpr char SRC[] =
"_SRC";
43 static constexpr char DST[] =
"_DST";
45 static constexpr char LENGTH[] =
"_LENGTH";
46 static constexpr char NODES[] =
"_NODES";
47 static constexpr char RELS[] =
"_RELS";
48 static constexpr char STAR[] =
"*";
53 static constexpr std::string_view
ROW_OFFSET =
"_row_offset";
54 static constexpr std::string_view
SRC_OFFSET =
"_src_offset";
55 static constexpr std::string_view
DST_OFFSET =
"_dst_offset";
66#ifdef KUZU_PAGE_SIZE_LOG2
67static constexpr uint64_t PAGE_SIZE_LOG2 = KUZU_PAGE_SIZE_LOG2;
69static constexpr uint64_t PAGE_SIZE_LOG2 = 12;
71static constexpr uint64_t KUZU_PAGE_SIZE =
static_cast<uint64_t
>(1) << PAGE_SIZE_LOG2;
74static constexpr uint64_t TEMP_PAGE_SIZE_LOG2 = 18;
75static const uint64_t TEMP_PAGE_SIZE =
static_cast<uint64_t
>(1) << TEMP_PAGE_SIZE_LOG2;
84#elif defined(__ANDROID__)
167 "startByteOffset",
"endByteOffset"};
234 "line_number",
"skipped_line_or_record"};
242static constexpr char ATTACHED_KUZU_DB_TYPE[] =
"KUZU";
244static constexpr char LOCAL_DB_NAME[] =
"local(kuzu)";
#define VECTOR_CAPACITY_LOG_2
Definition constants.h:17
constexpr auto DECIMAL_PRECISION_LIMIT
Definition constants.h:246
constexpr uint64_t DEFAULT_VECTOR_CAPACITY
Definition constants.h:24
constexpr std::array< T, N1+N2 > arrayConcat(const std::array< T, N1 > &arr1, const std::array< T, N2 > &arr2)
Definition array_utils.h:9
constexpr uint64_t CHUNK_RESIZE_RATIO
Definition constants.h:36
constexpr double DEFAULT_HT_LOAD_FACTOR
Definition constants.h:26
uint32_t column_id_t
Definition types.h:41
constexpr uint64_t THREAD_SLEEP_TIME_WHEN_WAITING_IN_MICROS
Definition constants.h:30
const char * KUZU_VERSION
PageSizeClass
Definition constants.h:58
@ TEMP_PAGE
Definition constants.h:60
@ REGULAR_PAGE
Definition constants.h:59
constexpr uint64_t DEFAULT_CHECKPOINT_WAIT_TIMEOUT_IN_MICROS
Definition constants.h:32
Definition array_utils.h:7
Definition constants.h:77
static constexpr uint64_t DEFAULT_VM_REGION_MAX_SIZE
Definition constants.h:87
static constexpr uint64_t DEFAULT_BUFFER_POOL_SIZE_FOR_TESTING
Definition constants.h:89
static constexpr double DEFAULT_PHY_MEM_SIZE_RATIO_FOR_BM
Definition constants.h:80
Definition constants.h:130
static constexpr const char * STRING_CSV_PARSING_OPTIONS[]
Definition constants.h:145
static constexpr char DEFAULT_CSV_DELIMITER
Definition constants.h:148
static constexpr uint64_t DEFAULT_CSV_SKIP_NUM
Definition constants.h:162
static constexpr std::array CSV_SPECIFIC_WARNING_DATA_COLUMN_NAMES
Definition constants.h:173
static constexpr bool DEFAULT_CSV_AUTO_DETECT
Definition constants.h:154
static constexpr std::array SHARED_WARNING_DATA_COLUMN_NAMES
Definition constants.h:166
static constexpr uint64_t PANDAS_PARTITION_COUNT
Definition constants.h:159
static constexpr std::array CSV_SPECIFIC_WARNING_DATA_COLUMN_TYPES
Definition constants.h:174
static constexpr uint64_t DEFAULT_CSV_TYPE_DEDUCTION_SAMPLE_SIZE
Definition constants.h:163
static constexpr const char * INT_CSV_PARSING_OPTIONS[]
Definition constants.h:161
static constexpr std::array DEFAULT_CSV_QUOTE_SEARCH_SPACE
Definition constants.h:157
static constexpr char DEFAULT_CSV_QUOTE_CHAR
Definition constants.h:150
static constexpr char DEFAULT_CSV_LIST_BEGIN_CHAR
Definition constants.h:151
static constexpr bool DEFAULT_CSV_ALLOW_UNBRACED_LIST
Definition constants.h:149
static constexpr const char * BOOL_CSV_PARSING_OPTIONS[]
Definition constants.h:139
static constexpr bool DEFAULT_CSV_SET_DIALECT
Definition constants.h:155
static constexpr column_id_t CSV_WARNING_DATA_NUM_COLUMNS
Definition constants.h:180
static constexpr std::array CSV_WARNING_DATA_COLUMN_TYPES
Definition constants.h:178
static constexpr bool DEFAULT_IGNORE_ERRORS
Definition constants.h:153
static constexpr column_id_t MAX_NUM_WARNING_DATA_COLUMNS
Definition constants.h:184
static constexpr std::array DEFAULT_CSV_DELIMITER_SEARCH_SPACE
Definition constants.h:156
static constexpr const char * IGNORE_ERRORS_OPTION_NAME
Definition constants.h:138
static constexpr uint64_t PARALLEL_BLOCK_SIZE
Definition constants.h:136
static constexpr std::array SHARED_WARNING_DATA_COLUMN_TYPES
Definition constants.h:168
static constexpr column_id_t SHARED_WARNING_DATA_NUM_COLUMNS
Definition constants.h:170
static constexpr bool DEFAULT_CSV_HAS_HEADER
Definition constants.h:141
static constexpr bool DEFAULT_CSV_PARALLEL
Definition constants.h:142
static constexpr char DEFAULT_CSV_LIST_END_CHAR
Definition constants.h:152
static constexpr uint64_t INITIAL_BUFFER_SIZE
Definition constants.h:132
static constexpr char DEFAULT_CSV_ESCAPE_CHAR
Definition constants.h:147
static constexpr std::array CSV_WARNING_DATA_COLUMN_NAMES
Definition constants.h:176
static constexpr std::array DEFAULT_CSV_ESCAPE_SEARCH_SPACE
Definition constants.h:158
Definition constants.h:220
static constexpr const char * DEFAULT_CSV_NEWLINE
Definition constants.h:221
static constexpr uint64_t DEFAULT_CSV_FLUSH_SIZE
Definition constants.h:224
static constexpr const char * DEFAULT_NULL_STR
Definition constants.h:222
static constexpr bool DEFAULT_FORCE_QUOTE
Definition constants.h:223
Definition constants.h:126
static constexpr uint16_t SLOT_CAPACITY_BYTES
Definition constants.h:127
Definition constants.h:227
static constexpr char COPY_NAME[]
Definition constants.h:229
static constexpr char SCHEMA_NAME[]
Definition constants.h:228
Definition constants.h:38
static constexpr char STAR[]
Definition constants.h:48
static constexpr char LENGTH[]
Definition constants.h:45
static constexpr char PLACE_HOLDER[]
Definition constants.h:49
static constexpr std::string_view DST_OFFSET
Definition constants.h:55
static constexpr char RELS[]
Definition constants.h:47
static constexpr char DIRECTION[]
Definition constants.h:44
static constexpr char ID[]
Definition constants.h:40
static constexpr std::string_view SRC_OFFSET
Definition constants.h:54
static constexpr char DST[]
Definition constants.h:43
static constexpr std::string_view ROW_OFFSET
Definition constants.h:53
static constexpr char MAP_KEY[]
Definition constants.h:50
static constexpr char MAP_VALUE[]
Definition constants.h:51
static constexpr char SRC[]
Definition constants.h:42
static constexpr char LABEL[]
Definition constants.h:41
static constexpr char NODES[]
Definition constants.h:46
static constexpr char ANONYMOUS[]
Definition constants.h:39
Definition constants.h:196
static constexpr uint64_t MIN_SIZE_TO_REDUCE
Definition constants.h:198
static constexpr uint64_t MIN_LIMIT_RATIO_TO_REDUCE
Definition constants.h:199
static constexpr uint64_t NUM_BYTES_FOR_PAYLOAD_IDX
Definition constants.h:197
Definition constants.h:202
static constexpr uint64_t PARQUET_DEFINE_VALID
Definition constants.h:203
static constexpr uint64_t PARQUET_UUID_SIZE
Definition constants.h:217
static constexpr uint64_t MAX_UNCOMPRESSED_PAGE_SIZE
Definition constants.h:207
static constexpr uint64_t STRING_LENGTH_SIZE
Definition constants.h:214
static constexpr uint64_t MAX_STRING_STATISTICS_SIZE
Definition constants.h:215
static constexpr uint64_t MAX_DICTIONARY_KEY_SIZE
Definition constants.h:212
static constexpr const char * PARQUET_MAGIC_WORDS
Definition constants.h:204
static constexpr uint64_t MAX_UNCOMPRESSED_DICT_PAGE_SIZE
Definition constants.h:210
static constexpr uint64_t PARQUET_INTERVAL_SIZE
Definition constants.h:216
Definition constants.h:187
static constexpr double NON_EQUALITY_PREDICATE_SELECTIVITY
Definition constants.h:188
static constexpr double EQUALITY_PREDICATE_SELECTIVITY
Definition constants.h:189
static constexpr uint64_t BUILD_PENALTY
Definition constants.h:190
static constexpr uint64_t SIP_RATIO
Definition constants.h:193
Definition constants.h:92
static constexpr char CATALOG_FILE_NAME_FOR_WAL[]
Definition constants.h:98
static constexpr char CATALOG_FILE_NAME[]
Definition constants.h:97
static constexpr char METADATA_FILE_NAME_FOR_WAL[]
Definition constants.h:101
static constexpr char TEMP_SPILLING_FILE_NAME[]
Definition constants.h:122
static constexpr char WAL_FILE_SUFFIX[]
Definition constants.h:94
static constexpr char LOCK_FILE_NAME[]
Definition constants.h:102
static constexpr uint64_t MAX_NUM_ROWS_IN_TABLE
Definition constants.h:120
static constexpr uint64_t CSR_LEAF_REGION_SIZE
Definition constants.h:117
static constexpr char METADATA_FILE_NAME[]
Definition constants.h:100
static constexpr uint64_t PAGE_IDX_IN_GROUP_MASK
Definition constants.h:107
static constexpr char OVERFLOW_FILE_SUFFIX[]
Definition constants.h:93
static constexpr uint64_t CSR_LEAF_REGION_SIZE_LOG2
Definition constants.h:116
static constexpr char SHADOWING_SUFFIX[]
Definition constants.h:95
static constexpr uint64_t PAGE_GROUP_SIZE
Definition constants.h:106
static constexpr char DATA_FILE_NAME[]
Definition constants.h:99
static constexpr uint64_t NODE_GROUP_SIZE_LOG2
Definition constants.h:110
static constexpr char INDEX_FILE_SUFFIX[]
Definition constants.h:96
static constexpr double PACKED_CSR_DENSITY
Definition constants.h:113
static constexpr uint64_t PAGE_GROUP_SIZE_LOG2
Definition constants.h:105
static constexpr uint64_t NODE_GROUP_SIZE
Definition constants.h:111
static constexpr double LEAF_HIGH_CSR_DENSITY
Definition constants.h:114
Definition constants.h:232
static constexpr std::array WARNING_TABLE_COLUMN_DATA_TYPES
Definition constants.h:235
static constexpr std::array WARNING_TABLE_COLUMN_NAMES
Definition constants.h:233
static constexpr uint64_t WARNING_TABLE_NUM_COLUMNS
Definition constants.h:237