Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sketch ¶
type Sketch interface { // Add adds a single value to the sketch. Add(v []byte) // Count returns a cardinality estimate for the sketch. Count() uint64 // Merge merges another sketch into this one. Merge(s Sketch) error // Bytes estimates the memory footprint of the sketch, in bytes. Bytes() int // Clone returns a deep copy of the sketch. Clone() Sketch encoding.BinaryMarshaler encoding.BinaryUnmarshaler }
Sketch is the interface representing a sketch for estimating cardinality.
Directories ¶
Path | Synopsis |
---|---|
Package hll contains a HyperLogLog++ with a LogLog-Beta bias correction implementation that is adapted (mostly copied) from an implementation provided by Clark DuVall github.com/clarkduvall/hyperloglog.
|
Package hll contains a HyperLogLog++ with a LogLog-Beta bias correction implementation that is adapted (mostly copied) from an implementation provided by Clark DuVall github.com/clarkduvall/hyperloglog. |
Click to show internal directories.
Click to hide internal directories.