Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloomFilter ¶
func NewBloomFilter ¶
func NewBloomFilter(size int64, falseRate float64) BloomFilter
type MemoryBloomFilter ¶
type MemoryBloomFilter struct { MLength int64 // 过滤器长度 MArr []int64 // 过滤器数组 NCount int64 // 插入元素个数 FalseRate float64 // 误报率 KHash int // hash函数个数 }
func (*MemoryBloomFilter) Check ¶
func (bf *MemoryBloomFilter) Check(data []byte) bool
func (*MemoryBloomFilter) Set ¶
func (bf *MemoryBloomFilter) Set(data []byte)
Click to show internal directories.
Click to hide internal directories.