loglogbeta

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 25, 2024 License: Apache-2.0, MIT Imports: 6 Imported by: 0

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
}

func NewFilter

func NewFilter() *LogLogBeta

New returns a LogLogBeta

func NewFilterBuffer

func NewFilterBuffer(buf []byte, p uint32) (*LogLogBeta, error)

func NewFilterWithPrecision

func NewFilterWithPrecision(p uint32) *LogLogBeta

func (*LogLogBeta) Add

func (llb *LogLogBeta) Add(value []byte)

func (*LogLogBeta) AddHash

func (llb *LogLogBeta) AddHash(x uint32)

func (*LogLogBeta) AddInt32

func (llb *LogLogBeta) AddInt32(val int32)

func (*LogLogBeta) AddInt64

func (llb *LogLogBeta) AddInt64(val int64)

func (*LogLogBeta) AddManyInt32

func (llb *LogLogBeta) AddManyInt32(data []int32)

func (*LogLogBeta) AddManyInt64

func (llb *LogLogBeta) AddManyInt64(data []int64)

func (*LogLogBeta) AddManyUint32

func (llb *LogLogBeta) AddManyUint32(data []uint32)

func (*LogLogBeta) AddManyUint64

func (llb *LogLogBeta) AddManyUint64(data []uint64)

func (*LogLogBeta) AddUint32

func (llb *LogLogBeta) AddUint32(val uint32)

func (*LogLogBeta) AddUint64

func (llb *LogLogBeta) AddUint64(val uint64)

func (*LogLogBeta) Bytes

func (llb *LogLogBeta) Bytes() []byte

func (*LogLogBeta) Cardinality

func (llb *LogLogBeta) Cardinality() uint64

Cardinality returns the number of unique elements added to the sketch

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) P

func (llb *LogLogBeta) P() uint32

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL