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

Method getNameForValue

src/DataTypes/EnumValues.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128
129template <typename T>
130std::string_view EnumValues<T>::getNameForValue(T value) const
131{
132 std::string_view result;
133 if (!getNameForValue(value, result))
134 throw Exception(ErrorCodes::UNKNOWN_ELEMENT_OF_ENUM, "Unexpected value {} in enum", toString(value));
135 return result;
136}
137
138template <typename T>
139bool EnumValues<T>::getNameForValue(T value, std::string_view & result) const

Callers 15

getBatchMethod · 0.80
castToNameMethod · 0.80
castToValueMethod · 0.80
readValueMethod · 0.80
serializeTextMethod · 0.80
serializeTextEscapedMethod · 0.80
serializeTextQuotedMethod · 0.80
serializeTextJSONMethod · 0.80
serializeTextXMLMethod · 0.80
serializeTextCSVMethod · 0.80

Calls 6

ExceptionClass · 0.50
toStringFunction · 0.50
frontMethod · 0.45
backMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected