aboutsummaryrefslogtreecommitdiffstats
path: root/util/generic/hash.cpp
diff options
context:
space:
mode:
authorAlexander Fokin <apfokin@gmail.com>2022-02-10 16:45:38 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:38 +0300
commit863a59a65247c24db7cb06789bc5cf79d04da32f (patch)
tree139dc000c8cd4a40f5659e421b7c75135d080307 /util/generic/hash.cpp
parentf64e95a9eb9ab03240599eb9581c5a9102426a96 (diff)
downloadydb-863a59a65247c24db7cb06789bc5cf79d04da32f.tar.gz
Restoring authorship annotation for Alexander Fokin <apfokin@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'util/generic/hash.cpp')
-rw-r--r--util/generic/hash.cpp58
1 files changed, 29 insertions, 29 deletions
diff --git a/util/generic/hash.cpp b/util/generic/hash.cpp
index a674ee4538..07c8daf1c0 100644
--- a/util/generic/hash.cpp
+++ b/util/generic/hash.cpp
@@ -1,8 +1,8 @@
-#include "hash.h"
-
+#include "hash.h"
+
#include <util/string/escape.h>
-#include <util/string/cast.h>
-
+#include <util/string/cast.h>
+
const void* const _yhashtable_empty_data[] = {(void*)3, nullptr, (void*)1};
TString NPrivate::MapKeyToString(TStringBuf key) {
@@ -10,41 +10,41 @@ TString NPrivate::MapKeyToString(TStringBuf key) {
try {
return EscapeC(key.substr(0, HASH_KEY_MAX_LENGTH));
} catch (...) {
- return "TStringBuf";
+ return "TStringBuf";
}
}
-
+
TString NPrivate::MapKeyToString(unsigned short key) {
- return ToString(key);
-}
-
+ return ToString(key);
+}
+
TString NPrivate::MapKeyToString(short key) {
- return ToString(key);
-}
-
+ return ToString(key);
+}
+
TString NPrivate::MapKeyToString(unsigned int key) {
- return ToString(key);
-}
-
+ return ToString(key);
+}
+
TString NPrivate::MapKeyToString(int key) {
- return ToString(key);
-}
-
+ return ToString(key);
+}
+
TString NPrivate::MapKeyToString(unsigned long key) {
- return ToString(key);
-}
-
+ return ToString(key);
+}
+
TString NPrivate::MapKeyToString(long key) {
- return ToString(key);
-}
-
+ return ToString(key);
+}
+
TString NPrivate::MapKeyToString(unsigned long long key) {
- return ToString(key);
-}
-
+ return ToString(key);
+}
+
TString NPrivate::MapKeyToString(long long key) {
- return ToString(key);
-}
+ return ToString(key);
+}
void NPrivate::ThrowKeyNotFoundInHashTableException(const TStringBuf keyRepresentation) {
ythrow yexception() << "Key not found in hashtable: " << keyRepresentation;