5 #ifndef BITABLE_COMMON_H__
6 #define BITABLE_COMMON_H__
17 #if defined BITABLE_DLL
18 #if defined _WIN32 || defined __CYGWIN__
19 #if defined BITABLE_DLL_EXPORT
20 #define BITABLE_API __declspec(dllexport)
22 #define BITABLE_API __declspec(dllimport)
25 #if __GNUC__ >= 4 || defined __clang__
26 #define BITABLE_API __attribute__ ((visibility ("default")))
38 #define BITABLE_MAX_KEY_SIZE 768
42 #define BITABLE_MIN_PAGE_SIZE 2048
46 #define BITABLE_MAX_PAGE_SIZE 65536
50 #define BITABLE_MAX_ALIGNMENT 512
54 #define BITABLE_MAX_BRANCH_LEVELS 32
230 #endif // -- BITABLE_COMMON_H__
struct BitableValue BitableValue
uint32_t valueAlignment
Definition: bitablecommon.h:200
Definition: bitablecommon.h:86
Definition: bitablecommon.h:133
Definition: bitablecommon.h:175
Definition: bitablecommon.h:78
const void * data
Definition: bitablecommon.h:147
Definition: bitablecommon.h:106
int32_t size
Definition: bitablecommon.h:151
BitableReadOpenFlags
Definition: bitablecommon.h:124
Definition: bitablecommon.h:118
Definition: bitablecommon.h:70
Definition: bitablecommon.h:66
Definition: bitablecommon.h:94
Definition: bitablecommon.h:137
Definition: bitablecommon.h:143
Definition: bitablecommon.h:82
Definition: bitablecommon.h:114
struct BitablePaths BitablePaths
char * largeValuePath
Definition: bitablecommon.h:165
Definition: bitablecommon.h:102
Definition: bitablecommon.h:129
Definition: bitablecommon.h:62
Definition: bitablecommon.h:110
int( BitableComparisonFunction)(const BitableValue *left, const BitableValue *right)
Definition: bitablecommon.h:210
BitableResult
Definition: bitablecommon.h:58
#define BITABLE_MAX_BRANCH_LEVELS
Definition: bitablecommon.h:54
uint32_t depth
Definition: bitablecommon.h:192
char * branchPaths[BITABLE_MAX_BRANCH_LEVELS]
Definition: bitablecommon.h:169
struct BitableStats BitableStats
Definition: bitablecommon.h:157
uint64_t itemCount
Definition: bitablecommon.h:180
char * leafPath
Definition: bitablecommon.h:161
Definition: bitablecommon.h:90
BITABLE_API void bitable_free_paths(BitablePaths *paths)
uint32_t keyAlignment
Definition: bitablecommon.h:196
uint32_t pageSize
Definition: bitablecommon.h:204
BITABLE_API void bitable_build_paths(BitablePaths *paths, const char *basePath)
uint64_t leafPages
Definition: bitablecommon.h:184
#define BITABLE_API
Definition: bitablecommon.h:33
uint64_t largeValueStoreSize
Definition: bitablecommon.h:188
Definition: bitablecommon.h:74
Definition: bitablecommon.h:98