Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultSize = 2 << 30
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BloomFliter ¶
type BloomFliter struct {
// contains filtered or unexported fields
}
func NewBloomFilter ¶
func NewBloomFilter() *BloomFliter
func (*BloomFliter) Add ¶
func (b *BloomFliter) Add(v string)
func (*BloomFliter) Contains ¶
func (b *BloomFliter) Contains(v string) bool
type SimpleHash ¶
type SimpleHash struct {
// contains filtered or unexported fields
}
func (*SimpleHash) Hash ¶
func (s *SimpleHash) Hash(str string) uint64
Click to show internal directories.
Click to hide internal directories.