MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / getSerialization

Method getSerialization

src/DataTypes/DataTypesCache.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71SerializationPtr SimpleDataTypesCache::getSerialization(BinaryTypeIndex index) const
72{
73 uint8_t index_value = static_cast<uint8_t>(index);
74 if (index_value >= by_index.size() || by_index[index_value].serialization == nullptr)
75 throw Exception(ErrorCodes::LOGICAL_ERROR, "Invalid binary type index: {}", index);
76
77 return by_index[index_value].serialization;
78}
79
80const SimpleDataTypesCache::Element * SimpleDataTypesCache::findByName(const String & type_name) const
81{

Callers

nothing calls this directly

Calls 5

ExceptionClass · 0.50
sizeMethod · 0.45
getMethod · 0.45
findByNameMethod · 0.45

Tested by

no test coverage detected