Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct {
// contains filtered or unexported fields
}
Filter is a wrapper around cuckoo filter
func FilterDecode ¶
FilterDecode decodes a filter from a byte slice
type Options ¶
type Options struct {
// NumIntial is the capacity initially
NumInitial uint32
// ScalingFactor decides the amount of increase in size
ScalingFactor float32
// FalsePositive is the target false positive rate
FalsePositive float64
// TighteningRatio is the factor by which the subsequent false positive decreases
TighteningRatio float32
// FillRatio approximates ratio of 1s to size of bitset
FillRatio float32
}
Options contains information for GrowingFilter
func DefaultOptions ¶
func DefaultOptions() Options
DefaultOptions returns the default options which is subjectively suitable for the author's use-case
func OptionsDecode ¶
Click to show internal directories.
Click to hide internal directories.