CuckooFilter
Constants
BUCKET_SIZE = 4
DEFAULT_CAPACITY = 10000_u64
DEFAULT_LOAD_FACTOR = 0.9_f32
DEFAULT_SCALE_FACTOR = ->(current_bucket_count : UInt64) do
(current_bucket_count * BUCKET_SIZE) * 2
end
FNV_OFFSET = 14695981039346656037_u64
FNV_PRIME = 1099511628211_u64
MAX_CUCKOO_COUNT = 500
NULL_FP = 0_u8
NULL_FP16 = 0_u16
VERSION = "0.1.0"
Class methods
default_hasher
Sourcedefault_hasher=(hasher : Hasher)
Sourcenew_scalable_filter(load_factor : Float32 = DEFAULT_LOAD_FACTOR, capacity : Int = DEFAULT_CAPACITY.to_i, scale_factor : Proc(UInt64, UInt64) = DEFAULT_SCALE_FACTOR) : ScalableFilter
Source