Documentation ¶
Overview ¶
Package counter implements linear counter estimator
Index ¶
Constants ¶
View Source
const (
// DefaultCap max capacity for the counter
DefaultCap = 1 << 19
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
Counter implements a simple probabilistic counter estimator with 1% estimation accuracy as described in https://www.waitingforcode.com/big-data-algorithms/cardinality-estimation-linear-probabilistic-counting/read
func FromBinary ¶
FromBinary unmarshals counter state
Click to show internal directories.
Click to hide internal directories.