diff options
author | Henning Baldersheim <balder@oath.com> | 2018-11-28 10:25:42 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@oath.com> | 2018-11-28 10:25:42 +0100 |
commit | d8a450407c98463cf72ae07da05b0ca8e47b638e (patch) | |
tree | 8089361b40150bf49d046d132845ac29b4a1d14c /searchlib | |
parent | 875b29f6ce0b63abca7d3df10fb6e808b10eaa9a (diff) |
Add hash method.
Diffstat (limited to 'searchlib')
-rw-r--r-- | searchlib/src/vespa/searchlib/datastore/entryref.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/datastore/entryref.h b/searchlib/src/vespa/searchlib/datastore/entryref.h index f5b687f0498..dc23349caad 100644 --- a/searchlib/src/vespa/searchlib/datastore/entryref.h +++ b/searchlib/src/vespa/searchlib/datastore/entryref.h @@ -13,6 +13,7 @@ public: EntryRef() : _ref(0u) { } explicit EntryRef(uint32_t ref_) : _ref(ref_) { } uint32_t ref() const { return _ref; } + uint32_t hash() const { return _ref; } bool valid() const { return _ref != 0u; } bool operator==(const EntryRef &rhs) const { return _ref == rhs._ref; } bool operator!=(const EntryRef &rhs) const { return _ref != rhs._ref; } |