Documentation ¶
Overview ¶
Package rotate implements a sliding set of three BloomFilters: `previous`, `current` and `next` and the BloomFilter interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCompressor ¶
func SetCompressor(c Compressor)
Types ¶
type BloomFilter ¶
type BloomFilter struct {
Previous, Current, Next *filter.BloomFilter
Config Config
// contains filtered or unexported fields
}
func (*BloomFilter) Add ¶
func (bs *BloomFilter) Add(elem []byte)
func (*BloomFilter) Check ¶
func (bs *BloomFilter) Check(elem []byte) bool
func (*BloomFilter) Close ¶
func (bs *BloomFilter) Close()
func (*BloomFilter) MarshalBinary ¶
func (bs *BloomFilter) MarshalBinary() ([]byte, error)
func (*BloomFilter) Union ¶
func (bs *BloomFilter) Union(that interface{}) (float64, error)
func (*BloomFilter) UnmarshalBinary ¶
func (bs *BloomFilter) UnmarshalBinary(data []byte) error
type Compressor ¶
type SerializableBloomFilter ¶
type SerializableBloomFilter struct {
Previous, Current, Next *filter.BloomFilter
Config Config
}
Click to show internal directories.
Click to hide internal directories.