mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 19:32:07 +00:00
916cbd6610
v2: Add a note that top_level_domains_lists aren not applied w/o restart v3: Remove ExtractFirstSignificantSubdomain{Default,Custom}Lookup.h headers v4: TLDListsHolder: remove FIXME for dense_hash_map (this is not significant)
18 lines
361 B
C++
18 lines
361 B
C++
#pragma once
|
|
|
|
#include <cstdlib>
|
|
|
|
// Definition of the class generated by gperf, present on gperf/tldLookup.gperf
|
|
class TopLevelDomainLookupHash
|
|
{
|
|
private:
|
|
static inline unsigned int hash(const char *str, size_t len);
|
|
public:
|
|
static const char * isValid(const char *str, size_t len);
|
|
};
|
|
|
|
namespace DB
|
|
{
|
|
using tldLookup = TopLevelDomainLookupHash;
|
|
}
|