28 void build(std::vector<std::pair<std::string, uint64_t>>&)
override;
30 size_t get(
const uint64_t key,
const size_t rank = 0)
const override;
33 const size_t rank)
const;
38 std::vector<size_t>* returnRankIds)
const;
43 std::vector<std::pair<uint64_t, uint64_t>>
weights_;
uint64_t computeHash(const char *data, size_t len) const
void build(std::vector< std::pair< std::string, uint64_t >> &) override
std::vector< size_t > selectNUnweighted(const uint64_t key, const size_t rank) const
size_t getNthByWeightedHash(const uint64_t key, const size_t modRank, std::vector< size_t > *returnRankIds) const
static constexpr uint64_t data[1]
std::vector< std::pair< uint64_t, uint64_t > > weights_
double getMaxErrorRate() const override