mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 11:33:46 +00:00
9520234365
This commit implements a basic IP prefix dictionary that allows storing IPv4/IPv6 prefixes and matching them against a single IP address on query time. This allows for doing IP -> ASN matching and other similar things on query time. The implementation is basic for start, using a simple bitwise trie and reusing interface for complex key dictionaries (so using tuple instead of UInt32/FixedString(16) as the key). A faster bitwise trie implementation (like poptrie) is desired to improve lookup performance and memory consumption with large prefix tables.
49 lines
961 B
CMake
Vendored
49 lines
961 B
CMake
Vendored
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-old-style-cast")
|
|
|
|
if (USE_INTERNAL_BOOST_LIBRARY)
|
|
add_subdirectory (libboost)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_POCO_LIBRARY)
|
|
add_subdirectory (libpoco)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_LZ4_LIBRARY)
|
|
add_subdirectory (liblz4)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_ZSTD_LIBRARY)
|
|
add_subdirectory (libzstd)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_RE2_LIBRARY)
|
|
add_subdirectory (libre2)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_DOUBLE_CONVERSION_LIBRARY)
|
|
add_subdirectory (libdouble-conversion)
|
|
endif ()
|
|
|
|
if (USE_INTERNAL_ZOOKEEPER_LIBRARY)
|
|
add_subdirectory (libzookeeper)
|
|
endif ()
|
|
|
|
add_subdirectory (libcityhash)
|
|
add_subdirectory (libfarmhash)
|
|
add_subdirectory (libmetrohash)
|
|
add_subdirectory (libbtrie)
|
|
|
|
if (USE_INTERNAL_ZLIB_LIBRARY)
|
|
add_subdirectory (libzlib-ng)
|
|
endif ()
|
|
|
|
add_subdirectory (libcctz)
|
|
|
|
if (ENABLE_LIBTCMALLOC AND USE_INTERNAL_GPERFTOOLS_LIBRARY)
|
|
add_subdirectory (libtcmalloc)
|
|
endif ()
|
|
|
|
if (NOT AARCH64)
|
|
add_subdirectory (libcpuid)
|
|
endif ()
|