summaryrefslogtreecommitdiffstats
path: root/document
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-08-19 11:11:10 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2022-08-19 11:11:10 +0000
commitd62601d2782f328adf40912b9909bcf4d6124961 (patch)
treeeb43661101e92b88d8c826fc41d55a5a521820f2 /document
parente293065d80c26b2771f7977a5b6bbb5ac9906a0b (diff)
Hide hash implementation details.
Diffstat (limited to 'document')
-rw-r--r--document/src/vespa/document/bucket/bucketid.cpp4
-rw-r--r--document/src/vespa/document/bucket/bucketid.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/document/src/vespa/document/bucket/bucketid.cpp b/document/src/vespa/document/bucket/bucketid.cpp
index 72dd3734ce7..9ca4db1e51c 100644
--- a/document/src/vespa/document/bucket/bucketid.cpp
+++ b/document/src/vespa/document/bucket/bucketid.cpp
@@ -78,7 +78,7 @@ void BucketId::initialize() noexcept {
}
uint64_t
-BucketId::xxhash::operator () (const BucketId& bucketId) const noexcept {
+BucketId::hash::operator () (const BucketId& bucketId) const noexcept {
const uint64_t raw_id = bucketId.getId();
return XXH3_64bits(&raw_id, sizeof(uint64_t));
}
@@ -158,4 +158,4 @@ operator>>(nbostream &is, BucketId &bucketId)
} // document
-VESPALIB_HASH_SET_INSTANTIATE_H(document::BucketId, document::BucketId::xxhash);
+VESPALIB_HASH_SET_INSTANTIATE_H(document::BucketId, document::BucketId::hash);
diff --git a/document/src/vespa/document/bucket/bucketid.h b/document/src/vespa/document/bucket/bucketid.h
index 1f944f5349c..370948c1acc 100644
--- a/document/src/vespa/document/bucket/bucketid.h
+++ b/document/src/vespa/document/bucket/bucketid.h
@@ -36,10 +36,9 @@ namespace bucket { class BucketIdList; }
class BucketId
{
public:
- struct xxhash {
+ struct hash {
uint64_t operator () (const BucketId& g) const noexcept;
};
- using hash = xxhash;
/**
* The primitive type used to store bucket identifiers. If you use the