Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LegacyEstimateBloomK ¶
LegacyEstimateBloomK estimate k(num of hash funcs) according to item count.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
Generator to generate variable-length bloom filter.
type LegacyBloom ¶
LegacyBloom a simple bloom filter in 2048 bit length.
func (*LegacyBloom) Test ¶
func (b *LegacyBloom) Test(item []byte) bool
Test test if item contained. (false positive)
Click to show internal directories.
Click to hide internal directories.