| 69 | } |
| 70 | |
| 71 | SerializationPtr 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 | |
| 80 | const SimpleDataTypesCache::Element * SimpleDataTypesCache::findByName(const String & type_name) const |
| 81 | { |
nothing calls this directly
no test coverage detected