diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-03-27 08:00:40 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-03-27 08:00:40 +0000 |
commit | 3629f64c2721c8169223ecec1f472981204edf30 (patch) | |
tree | 5d6ff09d97ae342f5235cd774ee8fc73841672ed /searchcore | |
parent | 490d18680b82b74a35750843b4f308c51cb089e1 (diff) |
Add class comment.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregator.h | 3 | ||||
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/bucketdb/checksumaggregators.h | 6 |
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) { } |