hll

package
v0.0.0-...-2c2c8a3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2015 License: BSD-2-Clause Imports: 3 Imported by: 1

Documentation

Overview

+build cgo

Index

Constants

View Source
const (
	DEFAULT_LOG2M     = 11
	DEFAULT_REGWIDTH  = 5
	DEFAULT_EXPTHRESH = -1
	DEFAULT_SPARSEON  = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Hll

type Hll struct {
	// contains filtered or unexported fields
}

Hll is the basic type for the Hll library. Holds an unexported instance of the database, for interactions.

func New

func New(log2m int, regwidth int, expthresh int64, sparseon int) (*Hll, error)

func NewDefault

func NewDefault() (*Hll, error)

func (*Hll) Add

func (hll *Hll) Add(value string)

func (*Hll) Add4Bytes

func (hll *Hll) Add4Bytes(value []byte) error

func (*Hll) Add8Bytes

func (hll *Hll) Add8Bytes(value []byte) error

func (*Hll) AddInt32

func (hll *Hll) AddInt32(value int32)

func (*Hll) AddInt64

func (hll *Hll) AddInt64(value int64)

func (*Hll) Delete

func (hll *Hll) Delete()

func (*Hll) GetCardinality

func (hll *Hll) GetCardinality() float64

func (*Hll) Print

func (hll *Hll) Print() string

func (*Hll) Serialize

func (hll *Hll) Serialize() []byte

func (*Hll) Union

func (hll *Hll) Union(hllRhs *Hll)

type HllError

type HllError string

HllError is used for errors using the hll library. It implements the builtin error interface.

func (HllError) Error

func (err HllError) Error() string

Jump to

Keyboard shortcuts

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