Documentation ¶
Overview ¶
Package bloom implements Bloom filters.
Index ¶
- func Optimal(numElements int, falsePositiveRate float64) (sizeBits int, numHashes int)
- type Filter
- func (f *Filter) Len() int
- func (f *Filter) MarshalBinary() ([]byte, error)
- func (f *Filter) MarshalJSON() ([]byte, error)
- func (f *Filter) NumHashes() int
- func (f *Filter) Set(x []byte)
- func (f *Filter) Test(x []byte) bool
- func (f *Filter) UnmarshalBinary(data []byte) error
- func (f *Filter) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
func (*Filter) MarshalBinary ¶
func (*Filter) MarshalJSON ¶
func (*Filter) UnmarshalBinary ¶
func (*Filter) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.