Documentation ¶
Index ¶
- func New(n uint) bloom.Bloom
- type StandardBloom
- func (this *StandardBloom) Add(item []byte) bloom.Bloom
- func (this *StandardBloom) Check(item []byte) bool
- func (this *StandardBloom) Count() uint
- func (this *StandardBloom) EstimatedFillRatio() float64
- func (this *StandardBloom) FillRatio() float64
- func (this *StandardBloom) PrintStats()
- func (this *StandardBloom) Reset()
- func (this *StandardBloom) SetErrorProbability(e float64)
- func (this *StandardBloom) SetHasher(h hash.Hash)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StandardBloom ¶
type StandardBloom struct {
// contains filtered or unexported fields
}
StandardBloom is the classic bloom filter implementation
func (*StandardBloom) Check ¶
func (this *StandardBloom) Check(item []byte) bool
func (*StandardBloom) Count ¶
func (this *StandardBloom) Count() uint
func (*StandardBloom) EstimatedFillRatio ¶
func (this *StandardBloom) EstimatedFillRatio() float64
func (*StandardBloom) FillRatio ¶
func (this *StandardBloom) FillRatio() float64
func (*StandardBloom) PrintStats ¶
func (this *StandardBloom) PrintStats()
func (*StandardBloom) Reset ¶
func (this *StandardBloom) Reset()
func (*StandardBloom) SetErrorProbability ¶
func (this *StandardBloom) SetErrorProbability(e float64)
func (*StandardBloom) SetHasher ¶
func (this *StandardBloom) SetHasher(h hash.Hash)
Click to show internal directories.
Click to hide internal directories.