NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
libcuckoo_load_factor_too_low Class Reference

#include <cuckoohash_util.hh>

Collaboration diagram for libcuckoo_load_factor_too_low:
[legend]

Public Member Functions

 libcuckoo_load_factor_too_low (const double lf)
 
const char * what () const noexcept override
 
double load_factor () const
 

Detailed Description

Thrown when an automatic expansion is triggered, but the load factor of the table is below a minimum threshold, which can be set by the cuckoohash_map::minimum_load_factor method. This can happen if the hash function does not properly distribute keys, or for certain adversarial workloads.

Constructor & Destructor Documentation

◆ libcuckoo_load_factor_too_low()

libcuckoo_load_factor_too_low::libcuckoo_load_factor_too_low ( const double  lf)
inlineexplicit

Constructor

Parameters
lfthe load factor of the table when the exception was thrown

Member Function Documentation

◆ load_factor()

double libcuckoo_load_factor_too_low::load_factor ( ) const
inline
Returns
the load factor of the table when the exception was thrown

◆ what()

const char* libcuckoo_load_factor_too_low::what ( ) const
inlineoverridenoexcept
Returns
a descriptive error message

The documentation for this class was generated from the following file: