Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogLogBeta ¶
type LogLogBeta struct {
// contains filtered or unexported fields
}
LogLogBeta is a sketch for cardinality estimation based on LogLog counting
func (*LogLogBeta) Add ¶
func (llb *LogLogBeta) Add(value []byte)
Add inserts a value into the sketch
func (*LogLogBeta) Cardinality ¶
func (llb *LogLogBeta) Cardinality() uint64
Cardinality returns the number of unique elements added to the sketch
func (*LogLogBeta) MarshalBinary ¶
func (llb *LogLogBeta) MarshalBinary() (data []byte, err error)
MarshalBinary implements the encoding.BinaryMarshaler interface.
func (*LogLogBeta) Merge ¶
func (llb *LogLogBeta) Merge(other *LogLogBeta)
Merge takes another LogLogBeta and combines it with llb one, making llb the union of both.
func (*LogLogBeta) UnmarshalBinary ¶
func (llb *LogLogBeta) UnmarshalBinary(data []byte) error
UnmarshalBinary implements the encoding.BinaryUnmarshaler interface.
Click to show internal directories.
Click to hide internal directories.