Documentation
¶
Index ¶
- func ContainsFromStream(stream io.ReadSeeker, blockCount int, hash uint64) (bool, error)
- func RecommendedBitsPerValue(ndv uint64, desiredFalsePositiveRatio float64) float64
- type Block
- func (blk *Block) AddHash(hash uint64)
- func (blk *Block) AddHashIfNotContains(hash uint64) bool
- func (blk *Block) AppendTo(bs []byte) []byte
- func (blk *Block) Contains(hash uint64) bool
- func (blk *Block) EstimateCardinality() int
- func (blk *Block) Merge(other *Block)
- func (blk *Block) ReadFrom(r io.Reader) (int64, error)
- func (blk *Block) UnmarshalBinary(bs []byte) error
- func (blk *Block) WriteTo(w io.Writer) (int64, error)
- type Filter
- func (f Filter) AddHash(hash uint64)
- func (f Filter) AddHashIfNotContains(hash uint64) bool
- func (f Filter) Contains(hash uint64) bool
- func (f Filter) EstimateCardinality() int
- func (f Filter) Merge(other Filter)
- func (f Filter) NumBlocks() int
- func (f *Filter) ReadFrom(r io.Reader) (int64, error)
- func (f Filter) SizeInBytes() int
- func (f Filter) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsFromStream ¶
func RecommendedBitsPerValue ¶
Types ¶
type Block ¶
type Block [wordsPerBlock]uint32
func (*Block) AddHashIfNotContains ¶
func (*Block) EstimateCardinality ¶
func (*Block) UnmarshalBinary ¶
type Filter ¶
type Filter []Block
func (Filter) AddHashIfNotContains ¶
func (Filter) EstimateCardinality ¶
func (Filter) SizeInBytes ¶
Click to show internal directories.
Click to hide internal directories.