Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloomFilter ¶
type BloomFilter struct {
// contains filtered or unexported fields
}
BloomFilter 表示一个布隆过滤器数据结构。
func NewBloomFilter ¶
func NewBloomFilter(size int, numHash int) *BloomFilter
NewBloomFilter 创建一个新的布隆过滤器,指定大小。
func (*BloomFilter) Contains ¶
func (bf *BloomFilter) Contains(element []byte) bool
Contains 检查元素是否可能在布隆过滤器中。
Click to show internal directories.
Click to hide internal directories.