summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-03-27 08:00:40 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2019-03-27 08:00:40 +0000
commit3629f64c2721c8169223ecec1f472981204edf30 (patch)
tree5d6ff09d97ae342f5235cd774ee8fc73841672ed /searchcore
parent490d18680b82b74a35750843b4f308c51cb089e1 (diff)
Add class comment.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregator.h3
-rw-r--r--searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregators.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregator.h b/searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregator.h
index a1dba50304f..fc0b7987756 100644
--- a/searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregator.h
+++ b/searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregator.h
@@ -7,6 +7,9 @@
namespace proton::bucketdb {
+/**
+ * Interface for aggregating bucket checksums.
+ **/
class ChecksumAggregator {
public:
enum class ChecksumType {LEGACY, XXHASH64};
diff --git a/searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregators.h b/searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregators.h
index c4dc33141bd..19f1de59827 100644
--- a/searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregators.h
+++ b/searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregators.h
@@ -4,6 +4,9 @@
namespace proton::bucketdb {
+/**
+ * Implementations of the legacy bucket checksums.
+ **/
class LegacyChecksumAggregator : public ChecksumAggregator {
public:
LegacyChecksumAggregator(BucketChecksum seed) : _checksum(seed) { }
@@ -18,6 +21,9 @@ private:
uint32_t _checksum;
};
+/**
+ * Implementations of the bucket checksums based on XXHASH64.
+ **/
class XXHChecksumAggregator : public ChecksumAggregator {
public:
XXHChecksumAggregator(BucketChecksum seed) : _checksum(seed) { }