aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbabenko <babenko@yandex-team.com>2024-09-17 16:13:46 +0300
committerbabenko <babenko@yandex-team.com>2024-09-17 16:38:10 +0300
commit6e0fd06866a02c686d9d435f9a402b62c1274d74 (patch)
tree63f845146af0f8d674627a96311ebf98d69c6077
parent02ac488195e766d8894f7a166d1aed23946d6e21 (diff)
downloadydb-6e0fd06866a02c686d9d435f9a402b62c1274d74.tar.gz
Cosmetics
commit_hash:46ea333dc79c005ee5efbd87eb6cdff7bc20e82a
-rw-r--r--yt/yt/client/table_client/logical_type.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/yt/yt/client/table_client/logical_type.cpp b/yt/yt/client/table_client/logical_type.cpp
index d817552fcc..5adb7d1382 100644
--- a/yt/yt/client/table_client/logical_type.cpp
+++ b/yt/yt/client/table_client/logical_type.cpp
@@ -2161,7 +2161,9 @@ TLogicalTypePtr NullLogicalType()
} // namespace NYT::NTableClient
-static inline size_t GetHash(
+namespace {
+
+size_t GetHash(
const THash<NYT::NTableClient::TLogicalType>& hasher,
const std::vector<NYT::NTableClient::TLogicalTypePtr>& elements)
{
@@ -2172,7 +2174,7 @@ static inline size_t GetHash(
return result;
}
-static inline size_t GetHash(
+size_t GetHash(
const THash<NYT::NTableClient::TLogicalType>& hasher,
const std::vector<NYT::NTableClient::TStructField>& fields)
{
@@ -2184,10 +2186,12 @@ static inline size_t GetHash(
return result;
}
+} // namespace
+
size_t THash<NYT::NTableClient::TLogicalType>::operator()(const NYT::NTableClient::TLogicalType& logicalType) const
{
using namespace NYT::NTableClient;
- const auto typeHash = static_cast<size_t>(logicalType.GetMetatype());
+ auto typeHash = static_cast<size_t>(logicalType.GetMetatype());
switch (logicalType.GetMetatype()) {
case ELogicalMetatype::Simple:
return CombineHashes(static_cast<size_t>(logicalType.AsSimpleTypeRef().GetElement()), typeHash);